I am implemented some thing in C function and i want to call the another c method using NSTimer method but the selector not worked and also self method not called. How can do that?
[NSTimer scheduledTimerWithTimeInterval:900 target:self selector:@selector(prepareToUploadLog()) userInfo:nil repeats:YES];
void prepareToUploadLog(void) is another function
According to the documentation of
scheduledTimerWithTimeInterval:So you can’t use a C function and have to add an Objective C method that wraps the C function.