[问题] 无法正常呼叫remoteControlReceived

楼主: hungwei0331 (Game)   2016-11-22 01:18:09
专案合并SWReavealController后,
就无法正常呼叫remoteControlReceived(with receivedEvent: UIEvent?)
点击锁屏上的按钮都无反应,
已确认在appdelegate有设定
UIApplication.shared.beginReceivingRemoteControlEvents()
且在需要此功能的view controller中加入以下程式码
http://pastebin.com/8YbtnavZ
想请教版上前辈该如何解决这问题呢,
恳请指点迷津 谢谢
作者: shinrenpan (iOS5)   2016-11-22 02:36:00
用 MPRemoteCommandCenter 会简单很多
作者: darktt (小朱)   2016-11-22 06:50:00
请改用 MPRemoteCommandCenter

Links booklink

Contact Us: admin [ a t ] ucptt.com