这很好,但我需要它出现在某个类名“食物”中,而不是其他类。任何提示将不胜感激。
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
// [Shared instance];
[NSTimer scheduledTimerWithTimeInterval:20 target:self selector:@selector(ad) userInfo:nil repeats:YES];
}
-(void)ad{
[ALInterstitialAd showOver:self.window];
}