• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Access object from another view
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Access object from another view


  • Subject: Access object from another view
  • From: Steve Wetzel <email@hidden>
  • Date: Tue, 21 Sep 2010 13:57:59 -0500

How do I access and object on one view from another view?  I cannot figure it out.

I have two view controllers and two views.  Lets call them viewController1 and viewController2 and view1 and view2.  ViewController1 loads the second view by:

[self.view addSubview:viewController2.view];

There is a label in view1 that I want to get the value of the text from in the code for viewController2.  How do I do this?


Steve






_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Access object from another view
      • From: Conrad Shultz <email@hidden>
    • Re: Access object from another view
      • From: Quincey Morris <email@hidden>
  • Prev by Date: Re: Toolbar Item -Menu Form Representation - Key Equivalent
  • Next by Date: Re: Access object from another view
  • Previous by thread: Re: Animated mask for UIViews?
  • Next by thread: Re: Access object from another view
  • Index(es):
    • Date
    • Thread