iOS 使屏幕常亮不黑屏
2017-07-18 本文已影响0人
wodeph
//常亮
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
//黑屏
[[UIApplication sharedApplication] setIdleTimerDisabled:NO];
注:不喜勿喷!!!
//常亮
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];
//黑屏
[[UIApplication sharedApplication] setIdleTimerDisabled:NO];
注:不喜勿喷!!!