through delegate u can know which view will be added so u can manage it by using any bool value n in viewDidLoad
you can load that view by putting one condition
in mainController:
bool isFirstView;
-(void)delegate:(bool)isFirst
{
isFirstView = isFirst;
}
// in viewDidLoad
)
(void)viewDidLoad
{
if(isFirstView)
{
TVC1 *tvc1 = [self.storyboard instantiateViewControllerWithIdentifier:@"TVC1"];
}
else
{
TVC2 *tvc2 = [self.storyboard instantiateViewControllerWithIdentifier:@"TVC2"];
}
}