大家好,有个小问题想请教,我用Objective C写在AppDelegate.m里面的一个method: -
(BOOL)application: (UIApplication *)application handleOpenURL:(nonnull NSURL *
)url 中,我想要抓到我的ViewController(XCode默认的)。
但我的Storyboard中有把ViewContoller用UINavitationController包起来,请问我要怎
么写才能在AppDelegate.m里面中,抓到被UINavigationController包起来的ViewControl
ler呢?
找了一些资料,但似乎没找到解答,我之前的写法如下,但是好像不太正确:
ViewController *controller = (ViewController*)application.keyWindow.rootViewCo
ntroller;
Objective C还没有很熟是新手,请各位指教了,感谢~> <