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

sql - VB.NET Operand type clash: date is incompatible with int error -

SVG stroke-linecap doesn't work for circles in Firefox? -

python - TypeError: Scalar value for argument 'color' is not numeric in openCV -