如何让iphone 屏幕背光常亮?

如何让iphone屏幕背光常亮?
2024-10-31 16:23:59
推荐回答(2个)
回答(1):

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

回答(2):

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];