I am running into an issue which is explained in another post:
Basically I want to pause a game when an iAd is triggered / touched.
I believe a possible solution is to set a variable (for example: "AdActive") from objective-C when the banner is touched, that C2 can read as a condition.
The code itself within Objective-C is:
- (BOOL)bannerViewActionShouldBegin:(ADBannerView *)banner willLeaveApplication:(BOOL)willLeave
NSLog(@"Banner view is beginning an ad action");
BOOL shouldExecuteAction = YES;
if (!willLeave && shouldExecuteAction)
// stop all interactive processes in the app
- (void)bannerViewActionDidFinish:(ADBannerView *)banner
// resume everything you've stopped
But I cannot figure out what kind of variable I can set or how, that could be later read by C2..
Any ideas, any Objective C and C2 gurus?