调节系统的音量和亮度必须在真机环境中测试
调节音量
//音量
MPMusicPlayerController *musicPlayer;
musicPlayer = [MPMusicPlayerController applicationMusicPlayer];
[musicPlayer setVolume:self.slider];
调节亮度
[[UIScreen mainScreen] setBrightness: self.slider];