[[UIApplication sharedApplication] setIdleTimerDisabled: YES]; 转载于:https://www.cnblogs.com/qizhuo/p/6042031.html