保持屏幕常亮的方法

[[UIApplication sharedApplication] setIdleTimerDisabled: YES]; 

原文地址:https://www.cnblogs.com/qizhuo/p/6042031.html