【发布时间】:2014-07-07 16:44:06
【问题描述】:
我在 Swift 中触发 UILocalNotifications 并且工作正常。但是,当我单击通知时,它会像往常一样打开我的应用程序(到默认的 ViewController)。如何让它打开一个特定的 ViewController?
【问题讨论】:
我在 Swift 中触发 UILocalNotifications 并且工作正常。但是,当我单击通知时,它会像往常一样打开我的应用程序(到默认的 ViewController)。如何让它打开一个特定的 ViewController?
【问题讨论】:
为了处理通知,应覆盖 AppDelegate 中的应用程序。
func 应用程序(应用程序:UIApplication,didReceiveLocalNotification 通知:UILocalNotification)
【讨论】: