![](/img/trans.png)
[英]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.