Is there a way to present a view controller modally without knowing what the visible view controller view is? Basically sort of like you would show an alert view at any points in time.
I would like to be able to do something like:
MyViewController *myVC = [[MyViewController alloc] init];
Well, you can follow the chain.
At each view controller perform the following series of test.
[viewController isKindOfClass:[UINavigationController class]], then proceed to
[(UINavigationController *)viewController topViewController].
[viewController isKindOfClass:[UITabBarController class]], then proceed to
[(UITabBarController *)viewController selectedViewController].
[viewController presentedViewController], then proceed to