ios - No visible interface declare the select , even if the method is implemented -


i create pdf , want have table in . found tutorial draw pdf table , after implent method :

+(void)drawtableat:(cgpoint)origin      withrowheight:(int)rowheight     andcolumnwidth:(int)columnwidth        androwcount:(int)numberofrows     andcolumncount:(int)numberofcolumns  {     (int = 0; <= numberofrows; i++)     {         int neworigin = origin.y + (rowheight*i);          cgpoint = cgpointmake(origin.x, neworigin);         cgpoint = cgpointmake(origin.x + (numberofcolumns*columnwidth), neworigin);          [self drawlinefrompoint:from topoint:to];     } }   ,  when call in :      (void)generatepdf:(nsstring *)filepath{          uigraphicsbeginpdfcontexttofile(filepath, cgrectzero, nil);         uigraphicsbeginpdfpagewithinfo(cgrectmake(0, 0, 612, 792), nil);          [self drawbackground];         [self  drawcamioncontext];           int xorigin = 50;         int yorigin = 300;          int rowheight = 50;         int columnwidth = 120;          int numberofrows = 7;         int numberofcolumns = 4;          [self drawtableat:cgpointmake(xorigin, yorigin) withrowheight:rowheight andcolumnwidth:columnwidth androwcount:numberofrows andcolumncount:numberofcolumns];         uigraphicsendpdfcontext();      } 

i have error : no visible interface declare selector "drawtableat...."

i declare methos in h file..

the problem declared drawtableat:... static method (using +) on class.

just change +(void)drawtableat:(cgpoint)origin -(void)drawtableat:(cgpoint)origin , should work (keep in mind change in header too!)


Comments

Popular posts from this blog

twig - Using Twigbridge in a Laravel 5.1 Package -

jdbc - Not able to establish database connection in eclipse -

firemonkey - How do I make a beep sound in Android using Delphi and the API? -