[問題] 無法正常呼叫remoteControlReceived
專案合併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
→
11/22 02:36, , 1F
11/22 02:36, 1F
→
11/22 06:50, , 2F
11/22 06:50, 2F
MacDev 近期熱門文章
PTT數位生活區 即時熱門文章