• 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
Re: iPhone: Accessing variable from another view controller
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iPhone: Accessing variable from another view controller


  • Subject: Re: iPhone: Accessing variable from another view controller
  • From: Luke the Hiesterman <email@hidden>
  • Date: Fri, 21 Aug 2009 06:22:12 -0700


On Aug 21, 2009, at 5:54 AM, Eric E. Dolecki wrote:

FirstViewController *fvDelegate = (FirstViewController *) [[UIApplication
sharedApplication] delegate];


BOOL online = FirstViewController.availableNetwork;

This should be fvDelegate.availableNetwork. You access the property on the instance, not the class.


Luke
_______________________________________________

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


References: 
 >iPhone: Accessing variable from another view controller (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: When to 'release' in Cocoa management?
  • Next by Date: Bindings & Reverting Properties
  • Previous by thread: iPhone: Accessing variable from another view controller
  • Next by thread: Re: iPhone: Accessing variable from another view controller
  • Index(es):
    • Date
    • Thread