ios阻止锁屏 --老代码,供参考

// Disable the idle timer [[UIApplication sharedApplication] setIdleTimerDisabled: YES];   
// Or for those who prefer dot syntax: [UIApplication sharedApplication].idleTimerDisabled = YES;

posted on 2015-10-13 19:18  🌞Bob  阅读(278)  评论(0编辑  收藏  举报

导航