Fade out Playback Volume on MPMusicPlayerController on iOS 5

后端 未结 1 1676
忘了有多久
忘了有多久 2021-02-10 00:59

I was using this answer for how to fade out music player volume in my app, but in iOS 5, this leads to the on-screen HUD for volume appearing to the user, as if they had pressed

相关标签:
1条回答
  • 2021-02-10 01:50

    I found a solution here: applicationMusicPlayer volume notification

    It simply directs you to add an MPVolumeView to your view. For some reason, having that in the view hierarchy prevents the volume HUD from appearing. Works for me, hopefully for you too.

    0 讨论(0)
提交回复
热议问题