2013-02-13 58 views

回答

2

是的,当然。对于这种类型的方法,您应该始终查看AppDelegate.m文件。 它的默认方法:

- (void)applicationWillEnterForeground:(UIApplication *)application 
{ 
    UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"Welcome back!" message:@"Welcome back!" delegate:nil cancelButtonTitle:nil otherButtonTitles:nil]; 
    [alert show]; 
} 

有的那种...

1

执行UIApplicationDelegate applicationWillEnterForeground:方法。这是在应用程序返回到前台时调用的。

相关问题