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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:03:48+00:00 2026-05-28T01:03:48+00:00

I am still new to iOS development and I wanted to know how to

  • 0

I am still new to iOS development and I wanted to know how to accomplish something. What I have is s UIViewController objects FirstController and SecondController. In the NIB file for FirstController I have a UITextField. In the NIV file for SecondController I have a UILabel.

What I want to do is update the UILabel with a new value as I update the UITextVew. So far, I have the following in my FirstController:

    - (IBAction)tbxName_EditingChanged:(id)sender;

In the SecondController I have the label in an Outlet Collection like so:

    @property (retain, nonatomic) IBOutletCollection(UILabel) NSArray *lblName;

Now, I have made the collection because I intend, in the future, to add more labels that will need to be changed and have all have the same value.

So, what I was thinking that I have to do is place a reference of my SecondController into my FirstController so that I can then run a custom ‘update’ method. Something like this:

    FirstController *viewController1 = [[[FirstController alloc] initWithNibName:@"FirstController" bundle:nil] autorelease];
    SecondController *viewController2 = [[[SecondController alloc] initWithNibName:@"SecondController" bundle:nil] autorelease];
    viewController1.secondView = viewController2;
    // do the rest to load the views...

Now, I have learned that a lot of the stuff I have learned, in .net., is not the way you do things in Objective C. I was wondering if this is what I have to do, or is there another way that I am not finding with Google?

Thanks for any help, and I hope that I explained this clearly enough.

  • 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-28T01:03:49+00:00Added an answer on May 28, 2026 at 1:03 am

    Solving problems like these in a predictable, proven way is the whole point of the Model-View-Controller design pattern. The point is, you want the first UIViewController to update the model, which will signal the second UIViewController to update its view.

    I’d suggest having a model somewhere. Either by using a singleton, first initialized in the app delegate, or core data, which is a little more advanced but very powerful.

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

Sidebar

Related Questions

I am completely new to iOS development and still have not managed how to
I'm absolutely new to iOS App development (I haven't actually started yet, still in
I have been learning android development and I am still new to this. I
Ok, I'm still pretty new to iOS development, so I apologize if this is
I'm still new to iOS development but I've ran into a problem that I
i am very new to ios development, rather i have just started work on
I'm new iOS development. Do I still need to release my properties in dealloc
I am kind of new to IOS development and have ran into an issue
I am new to iOS app development. I have been reading the documentation on
I'm new to the whole iOS development thing but I have completed my first

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.