how to call a function of a same class from other functions of the same class-Objective C -


but i'm getting errors when declaring this.

@implementation data  -(void)swapendian:(uint8_t*)pdata withboolvalue:(bool)bisalreadylittleendian { data* datas = [data alloc]; [datas swapendians:(uint8_t)&pdata[nindex] withsize:(sizeof(uint32_t));   }  -(void)swapendians:(uint8_t*)pdata withnbytesize:(int const)nbytesize {     nslog(@"swapendians!!"); }  @end 

how call function other function inside same class?

you can use self keyword achieve this.

[self yourfunctionname];


Comments

Popular posts from this blog

c# - how to write client side events functions for the combobox items -

exception - Python, pyPdf OCR error: pyPdf.utils.PdfReadError: EOF marker not found -