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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T03:51:18+00:00 2026-05-14T03:51:18+00:00

Sample: I’ve created a minimal set of files that highlight the issue here: http://uploads.omega.org.uk/Foo3.zip

  • 0

Sample:
I’ve created a minimal set of files that highlight the issue here: http://uploads.omega.org.uk/Foo3.zip

If viewDidLoad/viewInitWithNibName are called, a message box is displayed. The message box is not displayed, therefore, the methods are not being called.

Details:
I have an application that is attempting to use a UITabBarController to switch between multiple views.

The views are linked up to the UITabBarController using interface builder (select the tab page, open Attributes (Option-1), and fill in the NIB Name field), and so are displayed “automatically” with no extra code-behind to make them appear.

Is it intended behaviour that views loaded like this do not have their viewDidLoad method executed? If not, how am I doing it wrong, and what do I need to change.

If it is intended behaviour, I can think of a few work-arounds, but any suggestions are appreciated:

  1. Scrap the UITabBarController and implement the view switching myself (using initWithNibName and add/insert/push/Subview).
  2. Call each of the children’s viewDidLoad method manually in the UITabBarController’s own viewDidLoad method.

Thank you in advance for any help you can offer.

  • 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-14T03:51:19+00:00Added an answer on May 14, 2026 at 3:51 am

    OK, I’ve managed to solve this.

    Linking the NIB to the TabBarController isn’t enough – you also need to link the code beind file, it is not implicitly linked by the NIB even if you set the file owner correctly.

    Open IB, and select the relevent page. Click in the middle to select the view controller. Enter the NIB name of the sub view, then go to the last page (option 4). In ‘class identity’, enter the name of the code-behind file for the sub-view NIB.

    Everything will now work nicely.

    I’ve uploaded a correct version of the sample code: http://uploads.omega.org.uk/Foo3-Correct.zip

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

Sidebar

Related Questions

sample driver created and loaded successfully, in that a user defined function is written,
Sample input: http://bits.wikimedia.org/w/extensions-1.17/MobileFrontend/stylesheets/webkit.css my attempt: http://.*?/stylesheets/webkit.css does not find any matches The part of
Sample Code: var Day = Ember.Object.extend({ date:null, activities:null, // is set to an Em.ArrayProxy
Sample conversions: & -> `&` > -> `>` Any small library function that can
Sample html markup below <div class=container answer_comments> <p class=comment_text>Hey that's not cool.</p> <p class=comment_attribs>By
Sample of JSON: { 1:{ guid:8a40135230891fa70130891ff1000009, portalId:23832 } } The code that I am
Sample page On the sample page I have set div#content { padding-bottom:20px; } which
Sample 1: http://jsfiddle.net/ufCr8/ function createFunctions() { var result = new Array(); for (var i
Sample code that shows how to create threads using MFC declares the thread function
Sample code: <div id=first>first div</div> <div id=second>second div, click here or on the previous

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.