I have an app, in that app if its the first time the user has run the app I need to display a welcome screen and then present some 1st time only setup information for the app. I think the best place to put this is in the appdelegate (didFinishLaunchingWithOptions), maybe need correction if wrong. In the app delegate I call this method:
-(void) checkSetupOccured
{
NSString *filePath = [self dataFilePath];
if (![[NSFileManager defaultManager] fileExistsAtPath:filePath])
{
//File doesn't exist, first time ran or installed
UITabBarController *MyTabViewController = (UITabBarController *)self.window.rootViewController;
[MyTabViewController setSelectedIndex:3];
WelcomeHomeViewController *welcomeHomeViewController = [[MyTabViewController viewControllers] objectAtIndex:3];
[welcomeHomeViewController viewDidLoad];
//Need help here I think - Anyway to hide MyTabViewController when its presented?
}
}
I have been through a lot of threads and the things that keeps popping up are:
//[MyTabViewController presentModalViewController:WelcomeHomeViewController animated:YES];
//self.navigationController.navigationBarHidden = YES;
//[self setHidesBottomBarWhenPushed:YES];
I have tried many different places with these and probably just need to step back and relax but I can't find the solution right now. Also to note this is not in an UITableView. Any help would be greatly appreciated and I always mark my questions answered when answered.