//....we write this code top of the class
#define appDel ((AppDelegate*)[UIApplication sharedApplication].delegate)
or
AppDelegate *appDelegate = (AppDelegate*) [[UIApplication sharedApplication] delegate];
No comments:
Post a Comment