阻止iOS设备锁屏

Ios代码 [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; 或者 [UIApplication sharedApplication].idleTimerDisabled = YES; [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; 或者 [UIApplication sharedApplication].idleTimerDisabled = YES;

posted on 2014-07-22 11:29  三十一  阅读(192)  评论(0编辑  收藏  举报

导航