作者hungwei0331 (Game)
看板MacDev
标题[问题] 无法正常呼叫remoteControlReceived
时间Tue Nov 22 01:18:09 2016
专案合并SWReavealController後,
就无法正常呼叫remoteControlReceived(with receivedEvent: UIEvent?)
点击锁屏上的按钮都无反应,
已确认在appdelegate有设定
UIApplication.shared.beginReceivingRemoteControlEvents()
且在需要此功能的view controller中加入以下程式码
http://pastebin.com/8YbtnavZ
想请教版上前辈该如何解决这问题呢,
恳请指点迷津 谢谢
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 123.194.163.203
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/MacDev/M.1479748692.A.F11.html
1F:→ shinrenpan: 用 MPRemoteCommandCenter 会简单很多 11/22 02:36
2F:→ darktt: 请改用 MPRemoteCommandCenter 11/22 06:50