I need to find the top most navigation controller of my view controller hierarchy. I couldn't figure for sure if a navigation controller AND it's top view controller can have presented view controllers at the same, i.e
NavigationController --Presented--> UIViewController A
|
|
NavigationController.topViewController --Presented--> UIViewController B
Is this possible simultaneously? As in would i have to traverse both paths to the end and compare which is longer and then choose the correct path?
What I tried
I tried to simultaneously present view controllers on a navigation controller and its top view controller but i get this warning in LLDB "Attempt to present on whose view is not in the window hierarchy!"
It didn't present the view controller (0x100605860) but will this ALWAYS be the case? Can custom presentations leave a view in the window hierarchy?