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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T12:57:54+00:00 2026-06-05T12:57:54+00:00

So I have five different UIViewController that I would like to create. Each of

  • 0

So I have five different UIViewController that I would like to create. Each of them has a common thing (an image view on top, a label on top). So I was thinking of creating a parent UIViewController and then have 5 subclass from the parent UIViewController. In this parent view controller it will have the UIImageView, the label, and everything common/shared with the other five. The question is, each of this UIViewController subclass will have it’s own nib, however I want it to also have the parent’s UIImageView in place. How do I then deal with this?

I guess I am confused if each of the subclass UIViewController has it’s own nib, how can I see the parent view controller’s xib in this subclass? I know my wording is extremely confusing, I can’t seem to find a better way to explain this than this.

  • 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-05T12:57:59+00:00Added an answer on June 5, 2026 at 12:57 pm

    Don’t create a xib for the parent view controller. Instead, subclassing the parent view controller, then creating a xib for the subclass will expose the IBOutlets from any of the parent classes/view controllers.

    Just think of this example, as we’ve all subclassed UIViewController at some point and created a xib for it, we must connect the main view in the xib to the “view” IBOutlet. We’ll that IBOutlet is defined in the UIViewController parent class.

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

Sidebar

Related Questions

I have five activities/screens that I would like to be able to swipe between,
I have five combo boxes. Each one has a different name, but the possible
I have five tables that are fairly similar in structure but different enough that
I have five buttons on one form that when clicked enables a bool each
I have five consumers and one producer. The five consumers each output different data,
I'm writing a service that has five different methods that can take between 5
I have five separate services where each one corresponds to a different database table
I have created an application which stores a set five different times, at each
I have an array that created 5 objects. Each object has two strings and
I have five different websites set up using Wordpress 3.0 Multisite. They each contain

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.