vendredi 6 janvier 2017

In Objective C, how to override an application delegate function from a static Cocoa Touch Library class?

I'm creating an Adobe ANE ( AIR Native Extension ) for iOS to enable me show a confirmation alert when AdMob tries to open a link on the device browser ( Safari ). What I've reached is that the following function is the one to override from the application delegate:

- (BOOL)application:(UIApplication *)application handleOpenURL:(NSURL *)url;

But nothing happened when I implemented this function in my static Cocoa Touch Library class.

So I wonder what is the right way to make this overriding.

Appreciate your help. Thanks.

Aucun commentaire:

Enregistrer un commentaire