1、获取系统当前的亮度值
float value = [[UIScreen mainScreen] brightness];
2、设置系统屏幕的亮度
float value = 0.5;
[[UIScreen mainScreen] setBrightness:value];
END.
1、获取系统当前的亮度值
float value = [[UIScreen mainScreen] brightness];
2、设置系统屏幕的亮度
float value = 0.5;
[[UIScreen mainScreen] setBrightness:value];
END.