2013-02-13 88 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:方法。這是在應用程序返回到前臺時調用的。

相關問題