Posted By

choise on 07/12/10


Tagged


Versions (?)

Last Edited at 07/12/10 05:30pm

Viewed 1 times

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


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.