//调整屏幕亮度
UIScreen里面有个属性brightness(取值范围为0-1)可以调整屏幕亮度
具体用法
[UIScreen mainScreen].brightness = 0.9;
或
[[UIScreen mainScreen] setBrightness:0.9];
//设置屏幕不锁屏
sharedApplication里面有个属性idleTimerDisabled(默认为NO)设置为YES可以使屏幕常亮不锁屏
具体用法
[UIApplication sharedApplication].idleTimerDisabled = YES;
或
[[UIApplication sharedApplication] setIdleTimerDisabled:YES];