获取手机左边音量+ -按键的事件方法或私有api

Link address :http://blog.csdn.net/diyagoanyhacker/article/details/6582806

MPMusicPlayerController *ipodMusicPlayer = [MPMusicPlayerController iPodMusicPlayer];
    [ipodMusicPlayer beginGeneratingPlaybackNotifications];
    [[NSNotificationCenter defaultCenter] addObserver:self 
                                             selector:@selector(trackTheDeviceVolume:) 
                                                 name:MPMusicPlayerControllerVolumeDidChangeNotification 
                                               object:nil];

原文地址:https://www.cnblogs.com/xingchen/p/2257387.html