MPMusicPlayerController和setNowPlayingItem [英] MPMusicPlayerController and setNowPlayingItem
本文介绍了MPMusicPlayerController和setNowPlayingItem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用 MPMusicPlayerController
,特别是与 setNowPlayingItem
协议配合使用,并且用于 cydia
。但是当我提出问题时,我会遇到一些问题和theos的警告。似乎某些协议和方法不起作用,我收到这样的警告:
I'm using MPMusicPlayerController
, specifically with setNowPlayingItem
protocol and it's for cydia
. But I have some issues and theos' warning when i make. It seems that some of the protocols and methods are not working and I receive some warning like this:
Tweak.xm:177: warning: ‘MPMusicPlayerController’ may not respond to ‘-skipToPreviousItem’
Tweak.xm:188: warning: ‘MPMusicPlayerController’ may not respond to ‘-pause’
Tweak.xm:193: warning: ‘MPMusicPlayerController’ may not respond to ‘-play’
Tweak.xm:201: warning: ‘MPMusicPlayerController’ may not respond to ‘-skipToNextItem’
Tweak.xm:317: warning: ‘MPMusicPlayerController’ may not respond to ‘-setNowPlayingItem:’
有人有想法吗?我已经在原型中输入了协议
Have anyone some ideas? I enter the protocol already in prototype
推荐答案
是否已添加 MediaPlayer.framework
到项目?
- 在项目导航器中选择项目
- 选择目标右侧
- 选择构建阶段选项卡
- 打开链接二进制文件与库
- 添加您的框架
- select your project in the project navigator
- select your target on the right side
- select the "Build Phases" tab
- open "Link Binary With Libraries"
- add your framework
这篇关于MPMusicPlayerController和setNowPlayingItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文