[英]How Do You Launch A Specific ViewController When UILocalNotification Is Clicked In Swift
I am firing UILocalNotifications in Swift and that is working fine. 我正在Swift中解雇UILocalNotifications,这很正常。 However, when I click the notification it opens my app like it normally would (to the default ViewController).
但是,当我点击通知时,它会像通常那样(默认的ViewController)打开我的应用程序。 How do I make it open a specific ViewController instead?
如何让它打开特定的ViewController呢?
For handling the notification, the application in AppDelegate should be overwritten. 为了处理通知,应该覆盖AppDelegate中的应用程序。
func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification) func应用程序(应用程序:UIApplication,didReceiveLocalNotification通知:UILocalNotification)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.