How to programmatically silence the ringer or change the ringer tone on iOS5

后端 未结 2 692
南方客
南方客 2020-12-18 07:34

Is there a way to reduce the volume of the ringer or change the ringer tone on iOS5?

I checked out the Celestial framework, but can\'t instantiate AVSystemControlle

2条回答
  •  庸人自扰
    2020-12-18 07:59

    This might be what you are looking for: Override ringer volume in iPhone apps

    Basically, you set the volume using AVAudioPlayer on the -(void)viewDidLoad method of the view you are displaying on

提交回复
热议问题