MPMusicPlayerController和setNowPlayingItem [英] MPMusicPlayerController and setNowPlayingItem

查看:96
本文介绍了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 到项目?


  1. 在项目导航器中选择项目

  2. 选择目标右侧

  3. 选择构建阶段选项卡

  4. 打开链接二进制文件与库

  5. 添加您的框架

  1. select your project in the project navigator
  2. select your target on the right side
  3. select the "Build Phases" tab
  4. open "Link Binary With Libraries"
  5. add your framework

这篇关于MPMusicPlayerController和setNowPlayingItem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆