草庐IT

MPRemoteCommand

全部标签

ios - 如何从 MPRemoteCommandCenter 禁用所有 MPRemoteCommand 对象

Appledoc说“您可以通过将其启用属性设置为NO来禁用相应的MPRemoteCommand对象。”我提到了IsthereapublicwaytoforceMPNowPlayingInfoCentertoshowpodcastcontrols?并且我能够在锁定屏幕控制上禁用/启用特定命令。但是我想禁用锁屏控制中的所有控件,因为我正在播放radio并且它不支持任何操作-“播放/暂停/下一首/上一首”我尝试了以下代码片段:MPRemoteCommandCenter*remoteCommandCenter=[MPRemoteCommandCentersharedCommandCenter]