Posted By

choise on 07/12/10


Tagged

appdelegateinstance variablesobjective-c


Versions (?)

Who likes this?

5 people have marked this snippet as a favorite

umang_nine
bobbym245
rvachere
Tintenklecks
cnathan


Acess Instance Variables of the Application Delegate in Objective-C


 / Published in: Objective C
 

  1. // #import "yourappAppDelegate.h" in .h
  2.  
  3. // Get the yourappAppDelegate
  4. yourappAppDelegate *appDelegate = (yourappAppDelegate *)[UIApplication sharedApplication].delegate;
  5.  
  6. // Show some instance variables
  7. NSLog(@"appdelegates instance variable: %@",appDelegate.someinstancevariable);

Report this snippet  

You need to login to post a comment.