iOS System Volume Control

2019-05-30 13:30发布

问题:

AudioServicesPlaySystemSound() is playing my sounds using ringer volume.

I want them to play according to system volume instead.

How to?

回答1:

You should use the AVFoundation Framework to play your sounds. Look into the AVAudioPlayer class.