2016-01-23 49 views
1

我想要設置,如果用戶點擊「去設置」,有人可以幫忙嗎?從本地通知以編程方式進入設置iOS 9

heres what the notification looks like

+1

請不要使用圖片代碼,而不是將代碼粘貼到你的問題。 –

+0

你可以[編輯]你的帖子。粘貼代碼時,請確保選中它並按下Ctrl + K進行格式化。 – Arc676

+1

[打開另一個應用程序的設置應用程序]可能的重複(http://stackoverflow.com/questions/5655674/opening-the-settings-app-from-another-app) – Arc676

回答

0

試試這個:

if let appSettings = NSURL(string: UIApplicationOpenSettingsURLString) { 
     UIApplication.sharedApplication().openURL(appSettings) 
    } 
相關問題