Thursday, April 21, 2011

Calling a function in your App Delegate from a viewcontroller ?



That's how you can reference your app delegate from anywhere inside your application and call its functions



#import "YourAppDelegateClass.h" 

YourAppDelegateClass* instance1 = [[UIApplication sharedApplication] delegate];

[instance1 doSomeThing];







Hoping this is useful.

0 comments: