OC
// 设置屏幕常亮,默认是NO
[UIApplicationsharedApplication].idleTimerDisabled =YES;
// 设置窗口亮度大小,范围是0.1 - 1.0
[UIScreenmainScreen] setBrightness:0.5];
swfit
UIApplication.shared.idleTimerDisabled =true
OC
// 设置屏幕常亮,默认是NO
[UIApplicationsharedApplication].idleTimerDisabled =YES;
// 设置窗口亮度大小,范围是0.1 - 1.0
[UIScreenmainScreen] setBrightness:0.5];
swfit
UIApplication.shared.idleTimerDisabled =true
本文标题:iOS设置屏幕常亮
本文链接:https://www.haomeiwen.com/subject/zglopftx.html
网友评论