Answer the question
In order to leave comments, you need to log in
How to change UIApplicationDelegate listener?
I want to make sure that an instance of my class receives UIApplicationDelegate calls. Created a class:
@interface MyClass : NSObject <UIApplicationDelegate> {
...
}
MyClass *myClass = [[MyClass alloc] init];
[[UIApplication sharedApplication] setDelegate:myClass];
Answer the question
In order to leave comments, you need to log in
there are two ways:
one: you already have the required class, usually called AppDelegate
two: notifications
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question