You want visibleViewController:
The currently visible view can belong either to the view controller at the top of the navigation stack or to a view controller that was presented modally.
You want visibleViewController:
The currently visible view can belong either to the view controller at the top of the navigation stack or to a view controller that was presented modally.