I have created 2 views named “FirstView” and “SecondView”. Both views have nib files. Now I am getting the “FirstView” nib file perfectly and then on click, I am pushing my SecondView in the window. The SecondView gets loaded but the nib is not shown in that view. Its totally white!
code to change the view:
svc = [[signupViewController alloc] initWithNibName:@"signupViewController" bundle:nil];
[vc.view removeFromSuperview];
[window addSubview:svc.view];
Can anyone kindly help ?
Thanks.
–
ahsan
I suppose you have two controllers, one for FirstView and a second one for SecondView. So if you are allocating your controller programmatically make sure you are initializing the secondViewController with initWithNibName: at this point when you perform presentModalViewController or pushViewController you should be able to see your nib view.