IOS调节系统音量

清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>

#import <MediaPlayer/MediaPlayer.h>
    MPMusicPlayerController *musicPlayer;
    musicPlayer = [MPMusicPlayerController applicationMusicPlayer];
    [musicPlayer setVolume:voiceSlider.value];