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

  • SEARCH
  • Home
  • 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 8976205
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:04:43+00:00 2026-06-15T19:04:43+00:00

I have an activation page in my app, which is mandatory for every user

  • 0

I have an activation page in my app, which is mandatory for every user to activate the app.
Once the app is activated, the user moves to the tabbed bar view.

I have created a tabbed bar application, where from my activationView on click of button I am trying to call the tab bar, I am getting an entire black screen.

- (IBAction)moveToActivateView:(id)sender {
    AppDelegate *appDelegate = (AppDelegate *)[[UIApplication sharedApplication] delegate];
    UITabBarController *tabBarController = [[UITabBarController alloc]init];
    [self.view addSubview:tabBarController.view];
    appDelegate.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];

    UIViewController *viewController1 = [[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];
    UIViewController *viewController2 = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];

    self.tabBarController.viewControllers = @[viewController1, viewController2];
    appDelegate.window.rootViewController = self.tabBarController;
    [appDelegate.window makeKeyAndVisible];}
  • 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-15T19:04:44+00:00Added an answer on June 15, 2026 at 7:04 pm

    Hey make your tabBarController’s property in appDelegate and assign all ViewController there then call your tabBarController from yourViewController

    in AppDelegate.h

    @property (nonatomic, retain) IBOutlet UINavigationController *navigationController;
    @property (retain, nonatomic) IBOutlet UITabBarController *tabBarController;
    

    in AppDelegate.m

    - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
    {
        self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
    
        [self makeTabBar];
    
        [self addInitialVIew];
    
        [self.window makeKeyAndVisible];
    
        return YES;
    }  
    
    
    -(void)makeTabBar
    {    
        tabBarController = [[UITabBarController alloc] init];
        tabBarController.delegate=self;
        FirstViewController *firstVC =[[FirstViewController alloc] initWithNibName:@"FirstViewController" bundle:nil];    
    
        UINavigationController *firstNC = [[UINavigationController alloc] initWithRootViewController:firstVC];
        firstNC.tabBarItem.title=@"Profile";
        firstVC.tabBarController.tabBar.tag = 0;
    
    
        SecondViewController *secondVC = [[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil];
    
        UINavigationController *SecondNavController = [[UINavigationController alloc] initWithRootViewController:secondVC];    
        SecondNavController.tabBarItem.title = @"Search";
        secondVC.tabBarController.tabBar.tag = 1;
    
    
        NSArray *viewControllers =[[NSArray alloc]initWithObjects:firstNC,SecondNavController, nil];
        [tabBarController setViewControllers:viewControllers animated:NO];   
    }
    
    -(void) addInitialVIew
    {    
        InitialViewController *initialViewController = [[InitialViewController alloc]initWithNibName:@"InitialViewController" bundle:nil];
        navigationController = [[UINavigationController alloc]initWithRootViewController:ViewController];
        [self.window addSubview:navigationController.view];
    }
    

    Now in InitialViewController you can add yourTabBar and remove InitialViewController

    - (IBAction)switchToTabBarBtnPress:(id)sender
    {
        AppDelegate *appdelegte =(AppDelegate*)[[UIApplication sharedApplication]delegate];
    
        [[[appdelegte navigationController] view]removeFromSuperview];
    
        [[appdelegte window]addSubview:[[appdelegte tabBarController]view]];
    
        [[appdelegte tabBarController]setSelectedIndex:0];
    }
    

    And Follow my answer

    Answer

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created registration page and when user click submit button, an activation link
have written this little class, which generates a UUID every time an object of
I have to use UserId in a AdminUsers.aspx page ( to manage users activation
After user registration, website send activation code to email. something like that. www.domain.com/?activate=<code> I'm
I am trying to create an activation page so the when the user clicks
I have a registration system on my website which uses the common activation email
Am using django-registration for user account activation. in my registration_form.html I have {% extends
I have a full working php script for user activation that I wrote. Fully
I have a Silverlight app that displays a number of pages. Each page is
So I have my own webpage here , which is a sortable thumbnails page.

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.