看板 MacDev 關於我們 聯絡資訊
專案合併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