【问题标题】:MPNowPlayingInfoCenter doesn't work with the simulator [closed]MPNowPlayingInfoCenter 不适用于模拟器 [关闭]
【发布时间】:2013-12-10 11:18:30
【问题描述】:

我刚刚和MPNowPlayingInfoCenter 搏斗。一段时间后,我可以让它在我的 iPhone 上运行。

但它在模拟器上不起作用(iOS 6 和 7 测试)。我做错了什么,还是模拟器明确不支持?

【问题讨论】:

    标签: ios objective-c mpnowplayinginfocenter


    【解决方案1】:

    来自 Apple 文档的注释:

    在 iOS 模拟器中,始终在 nowPlayingInfo 字典中包含 MPNowPlayingInfoPropertyPlaybackRate 键。模拟器使用该键的值来更新它在控制中心和其他基于模拟器的界面中显示的播放进度。对于暂停或停止的轨道,将键的值设置为 0。对于正在播放的曲目,将该值设置为正数。

    Event Handling Guide for UIKit Apps: Providing Now Playing Information

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-07
      • 2017-07-21
      • 1970-01-01
      • 2011-05-23
      • 1970-01-01
      • 2014-12-02
      相关资源
      最近更新 更多