我正在尝试使UISlider与音量摇杆同步。我已成功使用滑块更改系统/铃声音量,但摇杆移动时需要滑块移动。有关如何获得当前音量值的任何建议?我使用下面的代码monnitor体积变化:同步音量摇杆与UISlider
- (void)volumeChanged:(NSNotification *)notification{
AVSystemController* avc = SharedAVSystemController;
// my sliders name is customVolume, and this is how I
// am trying to get the volume:
customVolume.value = [avc getVolume:(float *) forCategory:(id)];
}
此外,什么是AVSystemController类别以外的“铃声”?
你是怎么得到的AVSystemController(或其他东西)来控制系统/铃声音量?我现在正在研究如何自己做这件事。 [如何禁用系统声音](http://stackoverflow.com/questions/6284402/how-to-disable-ios-system-sounds/) – Sam 2011-06-09 16:59:08