How do i return that YES/No from other class?
1.Delegate is matter. Set delegate of Chartboost to your GameViewController class
Chartboost *cb = [Chartboost sharedChartboost];
cb.delegate = self;//Specify your GameViewController object instead of self;
2.implement the method in your class
- (BOOL)shouldDisplayInterstitial:(NSString *)location
{
return YES;
}
Best Practices: Source
First run experience
It's good practice (and noted in the iOS Human Interface Guidelines) to show interstitials only after the user has played your game for the first time.
You can use the below Chartboost SDK delegate method to prevent interstitials until the second startSession:
- (BOOL)shouldRequestInterstitialsInFirstSession {
return NO;
}
Refer this example