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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:09:43+00:00 2026-05-16T16:09:43+00:00

I am trying to create a two view, single controller application as follows: I

  • 0

I am trying to create a two view, single controller application as follows: I have two XIB’s. Each with the same File’s Owner.

As a test, I have placed a UILabel on each XIB. I have connected the File Owner to the UILabel in each XIB. The outlet property is the same.

When I instantiate the nib using loadNibNamed I also set the ‘owner’ to the instance of File’s Owner, e.g.:

nib=[[NSBundle mainBundle] loadNibNamed:@"ONE" owner:OWNER options:nil];
nib=[[NSBundle mainBundle] loadNibNamed:@"TWO" owner:OWNER options:nil];

Now, in OWNER, if I call

[myLabel setText:@"Hello World"];

I see the label update only in nib TWO.

If I create additional UILabels that are unique to each NIB then I can properly update and view them. It seems that I can only have one connection from the property on File’s Owner to each NIB.

Any ideas?

  • 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-16T16:09:43+00:00Added an answer on May 16, 2026 at 4:09 pm

    What you want is an IBOutletCollection. That allows you to assign a property to more than one nib element, and talk about the entire group all at once.

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

Sidebar

Related Questions

I am trying to create multiple records with two collections that i have View
I am trying to create two select lists both filled with the same times.
I'm trying to create a two dimensional array like this... @transactions = {} @expenses.each
I am trying to create an application that has two UITableViews placed side-by-side. The
I'm trying to create horizontal scroll view(s). Each view containing one image. [done] Initially
I am trying to create a table view which uses two types of cells
I have a view with two different actions of the same model (An item
I'm trying to create a tablayout where have two tabs for now. One tab
I am trying to create a single page webapp. There are two divs, right
I'm trying to create a simple project to pass some data between two view

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.