代码 调节屏幕亮度

- (IBAction)Slider:(id)sender {

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

}

 

- (IBAction)Stepper:(id)sender {

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

}

 

posted @ 2015-01-23 20:11  mengxiangtong22  阅读(567)  评论(0编辑  收藏  举报