控制屏幕是否长亮

[[UIApplication sharedApplication] setIdleTimerDisabled:YES];//屏幕长亮


[[UIApplication sharedApplication] setIdleTimerDisabled:NO];//取消屏幕长亮

你可能感兴趣的:(控制屏幕是否长亮)