I have a UIViewController in which it should pop up LoginViewController if the user is not already registered. The question is where should I call it:
LoginViewController* lvc = [[LoginViewController alloc] init]; lvc.delegate = self; //[lvc setModalPresentationStyle:UIModalPresentationFullScreen]; [self presentModalViewController:lvc animated:NO]; [lvc release];
should it be in viewDidLoad or in viewWillAppear? I think it makes sense to put it in viewWillAppear? I tried putting it in viewDidLoad, and that gives me an extra border to the left and right of the view. Why is this?
UPDATE:
What I'm trying to do here is call presentModalViewController on the DetailViewController for the UISplitViewApplication. However, nothing happens when I do this. I tried to create a new new UISplitViewApplication project, but still it did not work. The question is why? and how to present a modal view in a ViewAppear view UISplitViewApplication
adit source share