iOS 设置屏幕常亮,延长休眠时间

 //设置屏幕常亮
 [UIApplication sharedApplication].idleTimerDisabled = YES;
原文地址:https://www.cnblogs.com/akiha/p/6486968.html