休眠/默认:
[UIApplication sharedApplication].idleTimerDisabled = NO;
禁止休眠:
[UIApplication sharedApplication].idleTimerDisabled = YES;
休眠/默认:
[UIApplication sharedApplication].idleTimerDisabled = NO;
禁止休眠:
[UIApplication sharedApplication].idleTimerDisabled = YES;
本文标题:iPhone 禁止锁屏休眠的方法
本文链接:https://www.haomeiwen.com/subject/jfmpyqtx.html
网友评论