【问题标题】:going to settings programmatically from local notification iOS 9从本地通知 iOS 9 以编程方式进入设置
【发布时间】:2016-01-23 02:50:44
【问题描述】:

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

heres what the notification looks like

【问题讨论】:

  • 请不要使用图像作为代码,而是将代码粘贴到您的问题中。
  • 你可以edit你的帖子。粘贴代码时,请确保选中它并按 Ctrl+K 进行格式化。
  • 对不起,兄弟,我是新手,不会再发生了

标签: ios swift2 uilocalnotification


【解决方案1】:

试试这个:

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-04-19
    • 2016-10-23
    • 2016-05-26
    • 1970-01-01
    • 2023-03-14
    • 1970-01-01
    • 2019-04-16
    • 1970-01-01
    相关资源
    最近更新 更多