An AppDelegate
is a singleton that every iPhone program has. This class is responsible for receiving many system calls such as applicationDidFinishLaunching
, applicationWillTerminate
etc. It is the entry point for an iPhone app.
Each app defines their own AppDelegate and thus WebService_1AppDelegate
is yours. You can define your own methods/properties there and when required cast the AppDelegate
returned from [UIApplication sharedApplication]
to access your methods/properties.
WebService_1AppDelegat *appDelegate = (WebService_1AppDelegate*)[[UIApplication sharedApplication] delegate];
[appDelegate yourCustomMethod];