How to create sharedInstance
of AppDelegate
and use in my Application anywhere.
Use like this:
In the AppDelegate.h
+ (AppDelegate *)sharedAppDelegate;
In AppDelegate.m
+ (AppDelegate *)sharedAppDelegate{
return (AppDelegate *)[UIApplication sharedApplication].delegate;
}