I have four tabs in a UITabBarViewController. Each view has UIButtons added to their navbar's, and each tab has a "post button" that will take the user to the post page.
How do I make reference to a ViewController that is sitting in my storyboard already so that I can pass it into the PresentViewController:
method?
for example, this is the method used when the post button is clicked from any of the four tab bar views:
- (void)postInvoked:(UIBarButtonItem *)sender
{
[self presentViewController:______ animated:YES completion:nil];
}
What goes in the blank? I think I need to avoid referencing the UIViewController like this:
UIViewController * postPage = [[UIViewController alloc] init];
as this would create a new instance of the page every time the user navigates to the page.