Return to Snippet

Revision: 28689
at July 13, 2010 02:43 by choise


Updated Code
// #import "yourappAppDelegate.h" in .h

// Get the yourappAppDelegate
yourappAppDelegate *appDelegate = (yourappAppDelegate *)[UIApplication sharedApplication].delegate;

// Show some instance variables
NSLog(@"appdelegates instance variable: %@",appDelegate.someinstancevariable);

Revision: 28688
at July 12, 2010 17:30 by choise


Initial Code
// Get the HelloAppDelegate
HelloAppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];

// Show some instance variables
NSLog(@"appdelegates instance variable: %@",appDelegate.someinstancevariable);

Initial URL

                                

Initial Description

                                

Initial Title
Acess Instance Variables of the Application Delegate in Objective-C

Initial Tags

                                

Initial Language
Objective C