I am firing UILocalNotifications in Swift and that is working fine. However, when I click the notification it opens my app like it normally would (to the default ViewController). How do I make it open a specific ViewController instead?
For handling the notification, the application in AppDelegate should be overwritten.
func application(application: UIApplication, didReceiveLocalNotification notification: UILocalNotification)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.