【问题标题】:How Do You Launch A Specific ViewController When UILocalNotification Is Clicked In Swift在 Swift 中单击 UILocalNotification 时如何启动特定的 ViewController
【发布时间】:2014-07-07 16:44:06
【问题描述】:

我在 Swift 中触发 UILocalNotifications 并且工作正常。但是,当我单击通知时,它会像往常一样打开我的应用程序(到默认的 ViewController)。如何让它打开一个特定的 ViewController?

【问题讨论】:

    标签: ios xcode swift


    【解决方案1】:

    为了处理通知,应覆盖 AppDelegate 中的应用程序。

    func 应用程序(应用程序:UIApplication,didReceiveLocalNotification 通知:UILocalNotification)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-28
      • 2019-05-08
      • 2017-04-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多