I have an application like this:
Now, I want to set the SubscriptionsViewController (first UIViewController on the left) as the delegate of the UserViewController. I have created a @property in the UserViewController.. bla bla bla, but now I can't understand how I can set the first UIViewController as the delegate of the second... If I have a "User" button instad of the "User" UITabBarItem if can do:
-(void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
{
UserViewController *userViewController = segue.destinationViewController;
userViewController.delegate = self;
}
but it doesn't work with UITabBarItems (probably beacause there are no segues (?))
How I can fix this issue?
Thanks!