作者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://www.ptt.cc/bbs/MacDev/M.1479748692.A.F11.html
→ shinrenpan: 用 MPRemoteCommandCenter 會簡單很多 11/22 02:36
→ darktt: 請改用 MPRemoteCommandCenter 11/22 06:50