[英]How to access a view controller that is not the root view controller from AppDelegate.swift?
[英]How to do routing from AppDelegate.swift to any View controller
如果用户已经登录,我想打开我的HomeViewController
; 如果用户点击推送通知,我想打开我的NotificationViewController
。
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// What's code write for this functionality.
return true
}
Xcode 11.3.1
iOS 13
如果已经登录,请打开主页 controller:
点击推送通知并移动到通知视图 controller:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.