1、一行代码让App运行时iPhone不会进入锁屏待机状态 [[UIApplication sharedApplication] setIdleTimerDisabled:YES]; 转载于:https://www.cnblogs.com/kingbo/p/4576430.html