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 4250902
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T04:35:23+00:00 2026-05-21T04:35:23+00:00

I have an iPhone project that starts out with a standard UIView based Window…

  • 0

I have an iPhone project that starts out with a standard UIView based Window… when the user clicks a button its suppose to launch into a new view with a UITabBarController — similar to the way the iTunes Connect app behaves after you login. There are no sample code examples in the Apple documentation doing what I want but I know its possible because Apple has done it in their own apps (another example is the MobileMe iDisk app for iPhone).

I already tried the standard -presentModalViewController:animated: method and that did not work because there isn’t a view that I can attach within the UITabBarController.

Next I am going to attempt to work with two window XIBs within the App Delegate to see if I can get that approach to work instead.

I would appreciate any insight if you know how to answer this little problem of mine. =)

  • 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-05-21T04:35:24+00:00Added an answer on May 21, 2026 at 4:35 am

    What I ended up doing is this:

    In my App Delegate, I have the following in my interface:

    @interface myAppDelegate : NSObject <UIApplicationDelegate> {
        UIWindow * window;
        LauncherViewController * startup;
        UITabBarController * tabs;
    }
    @property (nonatomic, retain) IBOutlet UIWindow *window;
    @property (nonatomic, retain) IBOutlet LauncherViewController * startup;
    @property (nonatomic, retain) IBOutlet UITabBarController * tabs;
    @end
    

    In my implementation file, I add the following to the app start up function:

    - (BOOL)application:(UIApplication *)application 
            didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
        // Override point for customization after application launch.
    
        [self.window addSubview:self.startup.view];
        [self.window makeKeyAndVisible];
    
        NSNotificationCenter * notifier = [NSNotificationCenter defaultCenter];
    
        [notifier addObserver:self
                     selector:@selector(launch)
                         name:MyAppLoginInitializedNotification
                       object:nil];
    
        [notifier addObserver:self
                     selector:@selector(logout)
                         name:MyAppLogoutNotification
                       object:nil];
    
        return YES;
    }
    
    - (void) launch {
        [self.startup.view removeFromSuperview];
        [self.window addSubview:tabs.view];
        [self.window makeKeyWindow];
    }
    
    - (void) logout {
        [self.tabs.view removeFromSuperview];
        [self.window addSubview:startup.view];
        [self.window makeKeyWindow];
    }
    

    My main XIB contains both the standard UIViewController defined as LauncherViewController as well as a generic UITabBarController. As soon as my main launcher controller authentices the user credentials and sends the MyAppLoginInitializedNotification, the app delegate switches from the launcher to the tab view enabling me to continue on with my app logic.

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

Sidebar

Related Questions

No related questions found

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.