I have a problem and I will try to explain the issue:
UIViewController
(Whole screen)UIViewCo
In your secondary controller, try
id mainViewController = [self.view.superview nextResponder];
and check if this is the view controller you're looking for.
Apple's documentation of -[UIResponder nextResponder]
:
UIView implements this method by returning the UIViewController object that manages it (if it has one) or its superview (if it doesn’t)