@interface MyClass : NSObject <UIApplicationDelegate> {
...
}
MyClass *myClass = [[MyClass alloc] init];
[[UIApplication sharedApplication] setDelegate:myClass];
@interface AppDelegate : UIResponder <UIApplicationDelegate,>
//тут у вас возможно есть window или другие поля
@property (nonatomic, strong) UIWindow *window;
@property (nonatomic, strong) MyClass *obj;
@end
@implemented
- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url
{
[self.obj methodName:url]
}
@end
#import "AppDelegate.h"
MyClass *myClass = [[MyClass alloc] init];
[[(AppDelegate *)([UIApplication sharedApplication]) delegate] setObj:myClass ];