I need to create an application that has a login / name form and then a custom Google map. I am new to iOS programming and very quickly learn the things necessary for this application.
So, I created the interface and backend of the login form, it works. I have an action that is triggered by the "Login" button, which checks the credentials and causes either an error or presents a Google map.
I want to show that Google Map is in a different view controller that manages another xib file. I created a view controller and xib file.
My question is: how to load another view controller from an action placed in the implementation file of the current view controller?
Now I have this code:
UIViewController *mapViewController = [[BSTGMapViewController alloc] initWithNibName:@"BSTGMapViewController" bundle:nil];
How can I make this a “root view controller” in a window and possibly have a transition (given that my logic is fine: D)?
ios objective-c iphone model-view-controller ios5
Octavian
source share