[UIApplication sharedApplication].idleTimerDisabled=YES; 转载于:https://www.cnblogs.com/-yun/p/5382784.html