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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T18:26:59+00:00 2026-05-26T18:26:59+00:00

I am developing a iPAD app with a UITabViewController and some custom controllers initialized

  • 0

I am developing a iPAD app with a UITabViewController and some custom controllers initialized in the App Delegate.
I would like to show a Login screen to be shown before the user can get to the tabbar controller. However, when I try to present the LoginController modally, It doesn’t show up on the screen.
See the code below:

[tabBarController setViewControllers:viewControllers];
[[self window] setRootViewController:tabBarController];

LoginViewController *loginVC = [[LoginViewController alloc] init];
[[self tabBarController]presentModalViewController:loginVC animated:NO];

The screen now only shows the tabBarController? What am I doing wrong?
If I add the loginVC using [[self window]setView:loginVC.View], I see the login screen.

  • 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-26T18:26:59+00:00Added an answer on May 26, 2026 at 6:26 pm

    I don’t know why your code is not working, but

    Have your try this?

    [self.tabBarController.selectedViewController presentModalViewController:loginVC
                                                                    animated:NO];
    

    (Just to be sure you did at some point: self.tabBarController = tabBarController so your tabBarController isn’t just a local variable and self. really get to it.)

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

Sidebar

Related Questions

I am developing an augmented reality iOS app (iPhone/iPad/iPod) and I would like to
I am developing an ipad app and i would like to track how much
I am developing an iPad app for some clients. This app is like a
I've been contemplating (re)building an app on iPad for some time, where I would
i've been developing an ipad app for quite some time now, all the previous
I'm developing a iPad app which has a popover which appears to show you
I am developing an iPad app and found some memory leaks using Instruments and
I have created a universal app but would like to temporarly disable ipad until
Developing websites are time-consuming. To improve productivity, I would code a prototype to show
I am developing an ipad app with openGL. In my app basically I am

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.