Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152781
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:48:57+00:00 2026-06-06T15:48:57+00:00

I have an app, in that app if its the first time the user

  • 0

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:48:58+00:00Added an answer on June 6, 2026 at 3:48 pm

    Ok, here is what I put in the if statement:

        UITabBarController *MyTabViewController = (UITabBarController *)self.window.rootViewController;
    
        [MyTabViewController setSelectedIndex:3];
        UINavigationController *welcomeHomeViewController = [[MyTabViewController viewControllers] objectAtIndex:3];
                UITabBar *tabBar = MyTabViewController.tabBar;
        tabBar.hidden = YES;
        [welcomeHomeViewController viewDidLoad];
    

    This does seem off to me, please let me know if there is a better way. Just wanted to post the answer incase anyone else can be helped from this.

    EDIT:The bar is still visible 🙁 , but there are no buttons to push, just a black strip. Any help would be appreciated. At least the user can’t access the bar, but I need to hide it eventually.

    Edit:OK FINALLY!! So glad I have this solved and really hope this can help others!

    Here it is, modified in appsdevs post here:
    How to Hide Tab Bar Controller?

    UITabBarController *MyTabViewController = (UITabBarController *)self.window.rootViewController;
    
        for(UIView *view in MyTabViewController.view.subviews)
        {
            if([view isKindOfClass:[UITabBar class]])
            {
                [view setFrame:CGRectMake(view.frame.origin.x, 480, view.frame.size.width, view.frame.size.height)];
            } else 
            {
              [view setFrame:CGRectMake(view.frame.origin.x, view.frame.origin.y, view.frame.size.width, 480)];
            }
        }
    
        [MyTabViewController setSelectedIndex:3];
        UINavigationController *welcomeHomeViewController = [[MyTabViewController viewControllers] objectAtIndex:3];
    
        [welcomeHomeViewController viewDidLoad];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web app that has to do something every, let's say first
I have a Grails app that loads its data from xml files and delivers
I have a winform app that fills a lot of its dropdomn fields fram
I have a WPF app that from time to time needs to perform a
The first time a user logs into my app, I'd like to show them
I have an iphone app that uses table view as the interface. Each time
Just a bit about my app first. Its a quiz app. It has a
I have a Django app that gets it's data completely from an external source
I have an app that is part of a suite of related apps. It's
We have an app that needs to access network resources. It's written in VB.Net.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.