說明:當(dāng)應(yīng)用程序?qū)⒁敕腔顒?dòng)狀態(tài)執(zhí)行,在此期間,應(yīng)用程序不接收消息或事件,比如來電話了
2、- (void)applicationDidBecomeActive:(UIApplication *)application
說明:當(dāng)應(yīng)用程序入活動(dòng)狀態(tài)執(zhí)行,這個(gè)剛好跟上面那個(gè)方法相反
3、- (void)applicationDidEnterBackground:(UIApplication *)application
說明:當(dāng)程序被推送到后臺(tái)的時(shí)候調(diào)用。所以要設(shè)置后臺(tái)繼續(xù)運(yùn)行,則在這個(gè)函數(shù)里面設(shè)置即可
4、- (void)applicationWillEnterForeground:(UIApplication *)application
說明:當(dāng)程序從后臺(tái)將要重新回到前臺(tái)時(shí)候調(diào)用,這個(gè)剛好跟上面的那個(gè)方法相反。
5、- (void)applicationWillTerminate:(UIApplication *)application
說明:當(dāng)程序?qū)⒁顺鍪潜徽{(diào)用http://www.cladu.com/,通常是用來保存數(shù)據(jù)和一些退出前的清理工作。這個(gè)需要要設(shè)置UIApplicationExitsOnSuspend的鍵值。
6、- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
說明http://www.youum.com/:iPhone設(shè)備只有有限的內(nèi)存,如果為應(yīng)用程序分配了太多內(nèi)存操作系統(tǒng)會(huì)終止應(yīng)用程序的運(yùn)行,在終止前會(huì)執(zhí)行這個(gè)方法,通??梢栽谶@里進(jìn)行內(nèi)存清理工作防止程序被終止
7、- (void)applicationSignificantTimeChange:(UIApplication*)application
說明:當(dāng)系統(tǒng)時(shí)間發(fā)生改變時(shí)執(zhí)行
8、- (void)applicationDidFinishLaunching:(UIApplication*)application
說明:當(dāng)程序載入后執(zhí)行
9、- (void)application:(UIApplication)application willChangeStatusBarFrame:(CGRect)newStatusBarFrame
說明:當(dāng)StatusBar框?qū)⒁兓瘯r(shí)執(zhí)行
10、- (void)application:(UIApplication*)application willChangeStatusBarOrientation:
(UIInterfaceOrientation)newStatusBarOrientation
duration:(NSTimeInterval)duration
說明:當(dāng)StatusBar框方向?qū)⒁兓瘯r(shí)執(zhí)行
11、- (BOOL)application:(UIApplication*)application handleOpenURL:(NSURL*)url
說明:當(dāng)通過url執(zhí)行
12、- (void)application:(UIApplication*)application didChangeStatusBarOrientation:(UIInterfaceOrientation)oldStatusBarOrientation
說明:當(dāng)StatusBar框方向變化完成后執(zhí)行
13、- (void)application:(UIApplication*)application didChangeSetStatusBarFrame:(CGRect)oldStatusBarFrame