Objective-C:
[[UIApplication sharedApplication] setIdleTimerDisabled: YES];
Swift:
UIApplication.sharedApplication().idleTimerDisabled = true
Swift 3:
UIApplication.shared.isIdleTimerDisabled = true
【ios順序 設置不黑屏 制止黑屏】的相關資料介紹到這裡,希望對您有所幫助! 提示:不會對讀者因本文所帶來的任何損失負責。如果您支持就請把本站添加至收藏夾哦!