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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:45:20+00:00 2026-05-22T17:45:20+00:00

I’m developing a multi device App with separate views for iPhone and iPad. Within

  • 0

I’m developing a multi device App with separate views for iPhone and iPad. Within my App I’m using a UITabBarController with four tabs of content as the mainView.
The first tab contains a UINavigationController the second tab contains a UIViewController. Third tab is like first tab but with other NIB and Class-Files. And fourth tab is like second tab but with other content.

In every viewDidLoad Method I wrote something to console like “[currentview] was loaded” and currentview was replaced with an identifying name for the view which was loaded.
If I start my App on iPhone then the console shows me that without any user interaction the first tab and the third tab (both UINavigationController) both were loaded. In detail the third tab was loaded before the first tab.
If I start my App in iPad then only the first tab is loaded like it should have to be. Except for implementing NIB files targeted for iPad I use the same source code at the beginning of my App.

In AppDelegate_iPhone.m I only add the UITabBarController.view as a subview to window. Same procedure is done in AppDelegate_iPad.m

I already googled about this and found out that calling a controllers.view results in loading the view but programmatically I don’t call neither the view of the first tab nor the third tab. This is done by UITabBarController in his natural way (didn’t change anything for this controller). So I’m a bit confused why my App loads the third tab on iPhone. Because of this matter I had to remove some code done in viewDidLoad of the third tab because this code only had effect if the tab was nearly about to display.

I hope anybody has had the same issue and could tell me a solution or maybe a hint.

  • 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-22T17:45:21+00:00Added an answer on May 22, 2026 at 5:45 pm

    Finally I found my mistake.
    Creating a new project with a UITabBarController and four tabs with the given constellation showed up that the error wasn’t a general one. After realizing this I went step by step through my MainWindow_[ver].xib comparing the differences between iPhone and iPad version.
    I found out that in MainWindow_iPhone.xib the third tab was declared as a UINavigationController. Within this NavigationController I had a UITableViewController whose contents came from a class/nib linked via Interface Builder. Compared with the MainWindow_iPad.xib (where the error didn’t occur) I found out that I used a UIViewController within the iPad version instead of UITableViewController.
    After changing the iPhone version to UIViewController the error disappeared. Hooray 🙂

    To approve if this error occurs everytime a UITableViewController was used in another tab than the first one I edited the newly created project and changed the third’s tab UIViewController (within the UINavigationController) to a UITableViewController. As expected the third tab was loaded before the first tab.
    Additional info: although in MainWindow_[ver].xib I declared a UIViewController to be loaded the specific implementation was a UITableViewController subclass. Seems to work because UITableViewController is a subclass of UIViewController but still strange why the superclass has to be specified in the MainWindow_[ver].xib

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

Sidebar

Related Questions

link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Seemingly simple, but I cannot find anything relevant on the web. What is the
Does anyone know how can I replace this 2 symbol below from the string
this is what i have right now Drawing an RSS feed into the php,
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out
I have just tried to save a simple *.rtf file with some websites and
I want to count how many characters a certain string has in PHP, but
I ran into a problem. Wrote the following code snippet: teksti = teksti.Trim() teksti
I have a French site that I want to parse, but am running into

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.