[問題] 無法正常呼叫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