I have a tabBarController (that i created using code without Interface Builder):
self.tabBarController = [[[UITabBarController alloc] init];
self.tabBarController.viewControllers = [NSArray arrayWithObjects:firstController, secondController, thirdController, nil];
when i'm in the second tab (secondController) and i press a button:
UIButton *button1;
I want to pass to another view (seconddController for example):
- (void)actio:(UIButton *)button1
{
seconddController *scdd = [[seconddController alloc] init ];
[self presentModalViewController:scdd animated:YES];
}
But the problem is that i want to stay on the second tab and not that the view occupies all the space, so how to add that seconddCntroller to the second tab in lieu of secondController?
Thank you