屏幕一直亮的问题

[UIApplication sharedApplication].idleTimerDisabled=YES;

原文地址:https://www.cnblogs.com/pinping/p/2216517.html