UIApplicatonDelegte的这四个delegate方法- (void)applicationWillBecomeActive::(UIApplication *)application;- (void)applicationWillResignActive:(UIApplication *)application;- (void)applicationDidBecomeActive:(UIApplication *)application;- (void)applicationDidResignActive:(UIApplication *)application;
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];