applicationMusicPlayer volume notification

后端 未结 6 1223
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-30 02:28

I am using an applicationMusicPlayer and when i try to change the volume appear the visual notification, as shown in the picture. Here the code I am using:

[         


        
6条回答
  •  佛祖请我去吃肉
    2020-11-30 03:09

    Swift 3

    You can hide the System MPVolumeView using

    override func viewDidLoad() {
        super.viewDidLoad()
        let volumeView = MPVolumeView(frame: CGRect.zero)
        self.view.addSubview(volumeView)
      }
    

提交回复
热议问题