【发布时间】:2019-03-17 04:02:15
【问题描述】:
我有一个 UITabBarController 作为根视图控制器,我需要访问 ProfileViewController 中的一个属性。
这是故事板:
func application(_ application: UIApplication, open url: URL, sourceApplication: String?, annotation: Any) -> Bool {
let rootVC = self.window?.rootViewController
if "com.spbpu.csse" == url.scheme {
//I need here to get VC property and do something like vc.oauth2.handleRedirectURL(url)
return true
}
return false
}
【问题讨论】:
标签: ios swift uitabbarcontroller appdelegate