// 设置音量
- (void)setVolume:(float)newVolume
{
[[MPMusicPlayerController applicationMusicPlayer] setVolume:newVolume];
}
// 获取音量
- (float)volume
{
return [[MPMusicPlayerController applicationMusicPlayer] volume];
}
// 设置音量
- (void)setVolume:(float)newVolume
{
[[MPMusicPlayerController applicationMusicPlayer] setVolume:newVolume];
}
// 获取音量
- (float)volume
{
return [[MPMusicPlayerController applicationMusicPlayer] volume];
}