Hey!
I have my main ViewController which has a tabBar and a navBar.
My tabBar has 2 buttons, in the first view, I added to its navBar an Add button, which should call another view. That's working fine except that this view is being called on the other tab instead of the one where the button was clicked.
This is my code:
-(void)add:(id)sender
{
newItem *detailViewController = [[newItem alloc] initWithNibName:@"newItem" bundle:nil];
[navController pushViewController:detailViewController animated:YES];
[detailViewController release];
}
Why isn't it working?