-(void)Save{
MainScreenContoller *main= [[MainScreenContoller alloc] initWithNibName:@"MainScreenContoller" bundle:nil];
[self.view.superview addSubview:[main view]];
}
This is the place that i am going to click and my button calls save function.After this i want the application automatically turn to main screen which is the first tab bar this one is the third.
So i click the button and the application switches to the first tab bar.
Try setting this property of
UITabBarController:So for the first tab, something like:
From the documentation: