ios - No visible @interface for ____ declares the selector -


i have set method in separate class (called externalclass) needs take 2 arguments.

-(void) openimage:(nsdictionary *)payload inapp:(uiapplication *)app; 

in appdelegate.m, call method this:

 - (void)application:(uiapplication *)application didreceiveremotenotification:(nsdictionary *)payload fetchcompletionhandler (void (^)(uibackgroundfetchresult))completionhandler     {         [[externalclass sharedinstance] openimage:payload inapp:application];     } 

i getting "no visible @interface externalclass declares selector 'openimage:inapp'

any idea why?

i think forgot declare method in header(.h) file.

declare method in externalclass.h file.

-(void) openimage:(nsdictionary *)payload inapp:(uiapplication *)app; 

and import externalclass.h , want use method.


Comments

Popular posts from this blog

android - Why am I getting the message 'Youractivity.java is not an activity subclass or alias' -

python - How do I create a list index that loops through integers in another list -

c# - “System.Security.Cryptography.CryptographicException: Keyset does not exist” when reading private key from remote machine -