I am trying to make my application launch to a modalviewcontroller, but am getting an error stating the ModalViewController is undeclared (see the picture). How can I declare it is, as it wants me to do?
I want the modalviewcontroller to be called (as a log in screen with some other various options), then once it is loaded, it will have a button i have already assigned to dismiss it. After the dismissal, I want the tabbarcontroller to be shown, which I believe it is:
- (void)applicationDidFinishLaunching
UIApplication *)application {
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
LoginViewController *startapp = [[LoginViewController alloc] initWithNibName:nil bundle:nil];
[presentModalViewController:startapp Animated:YES];
}
I want the modalviewcontroller to be called (as a log in screen with some other various options), then once it is loaded, it will have a button i have already assigned to dismiss it. After the dismissal, I want the tabbarcontroller to be shown, which I believe it is:
- (void)applicationDidFinishLaunching
// Add the tab bar controller's current view as a subview of the window
[window addSubview:tabBarController.view];
LoginViewController *startapp = [[LoginViewController alloc] initWithNibName:nil bundle:nil];
[presentModalViewController:startapp Animated:YES];
}