首页 > 代码库 > 代码 调节屏幕亮度

代码 调节屏幕亮度

- (IBAction)Slider:(id)sender {

  [[UIScreen mainScreen] setBrightness: mSlider.value];

}

 

- (IBAction)Stepper:(id)sender {

    [[UIScreen mainScreen] setBrightness:[(UIStepper *)sender value]];

}

 

代码 调节屏幕亮度