Hello everyone.
I was just wondering how you people deal with the appDelegate.
So for me, the way I do it is the next one:
Code:
@interface MyClass : NSObject {
MyAppDelegateClass *appDelegate;
}
@property (nonatomic, assign) MyAppDelegateClass *appDelegate;
@implementation MyClass
@synthesize appDelegate;
-(id) init{
[self setAppDelegate:(MyAppDelegateClass *)[[UIApplication sharedApplication] delegate]];
return self;
}
@end
Nothing is wrong so far, but I just wanted to know if that is a good habit to use or not. How do you do it?