标签:
// Disable the idle timer [[UIApplication sharedApplication] setIdleTimerDisabled: YES];
// Or for those who prefer dot syntax: [UIApplication sharedApplication].idleTimerDisabled = YES;
ios阻止锁屏 --老代码,供参考
原文地址:http://www.cnblogs.com/isItOk/p/4875586.html