开发者

iPhone SKD make the iPod controller appear

开发者 https://www.devze.com 2022-12-31 21:47 出处:网络
It\'s been a while I\'m consulting stackoverflow, but this time I didn\'t find any answer :( My question is quite simple :)

It's been a while I'm consulting stackoverflow, but this time I didn't find any answer :(

My question is quite simple :)

On an iPhone/iPod touch, play music. Double tap the home button while the music is playing. You will see appear a popup with the play/pause/next/previous buttons and a volume control.

Do you know if it's possible to make this popup appear programmatically ? I mean, I would like to add a button in my app that will display the popup, avoiding the user to double tap the home button (most of t开发者_JAVA百科hem doesn't know this shortcut).

Thank you in advance !


You can use MPMusicPlayerController to control iPod playback, but I think you need to write your own UI. The popup is displayed by a different process (it stays up when you kill your app in the debugger).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号