从本地通知iOS 9以编程方式进入设置

时间:2016-01-23 02:50:45

标签: ios swift2 uilocalnotification

如果用户点击“转到设置”,我想去设置,有人可以帮忙吗?

heres what the notification looks like

1 个答案:

答案 0 :(得分:0)

试试这个:

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