2013-05-12 42 views
0

我的應用程序包含給用戶一個選項來禁用/啓用我的iPhone應用程序的通知uiswitch 所以我需要的禁用/啓用通知代碼, 感謝有沒有什麼辦法來禁用/啓用我的iPhone應用程序的notfication

+0

你看了申請指南:https://developer.apple.com/library/ios/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction.html – Franck 2013-05-12 19:00:14

+0

檢查這個類似的問題http://stackoverflow.com/questions/10510578/enable-or-disable-iphone-push-notifications-inside-the-app – Ayrad 2013-05-12 19:00:50

回答

0

呼叫registerForRemoteNotificationTypes(啓用)或unregisterForRemoteNotificationTypes(禁用)

相關問題