Quote:
Originally Posted by ftm
How about just creating a #define like this:
Code:
#define APPDELEGATE ((MyAppDelegate*)[[UIApplication sharedApplication] delegate])
Now anywhere you want to access the App Delegate, just use "APPDELEGATE" in code.
|
Very nice elegant solution, I didn't think of that. Thanks.