Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 58

awesome123
Aspiring developer
Profile
Posts: 132
Reg: Dec 27, 2011
location unknow...
2,320
02/10/13 09:35 PM (12 years ago)

launch second code if the first code doesn't work out?

is it possible to launch a second code if the first code doesn't work out? i can see it in xcode's log. i want to know if i can put an if else statement and launch a second code if that happens?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
02/10/13 09:43 PM (12 years ago)
What exactly is the code that wouldn't be working out?
 
awesome123
Aspiring developer
Profile
Posts: 132
Reg: Dec 27, 2011
location unknow...
2,320
like
02/10/13 10:46 PM (12 years ago)
hi absentia thanks for the response :) it's revmob's pop up. im wondering if i can do a split test with another ad (or my own pop up) and see what works best. there's an option in revmob where you can stop the full screen ad to pop up. so that's basically where my control would come from. let's say for a week i'll turn it on and see my conversions and then the following week, i'll turn it off to track the conversions for the next ad that will be coded as an if else statement in xcode. is that possible?
 
Absentia
buzztouch Evangelist
Profile
Posts: 960
Reg: Oct 20, 2011
Alaska
20,600
like
02/10/13 11:08 PM (12 years ago)
Hmm I see what you mean..maybe I'll take a look at it tomorrow. I know that RevMob has a didFailWith error method that you can implement so it might be possible
 
awesome123
Aspiring developer
Profile
Posts: 132
Reg: Dec 27, 2011
location unknow...
2,320
like
02/11/13 12:39 AM (12 years ago)
thanks :D let me know if you find anything. i'm figuring it out myself and will post here once i made it work. hoping that a few bt members will benefit from it :)
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.