How can I call a method with multiple params like below with performSelectorInBackground?
Sample method:
-(void) reloadPage:(NSInteger)pageIndex fir
Well, I have used this:
[self performSelectorInBackground:@selector(reloadPage:) withObject:[NSArray arrayWithObjects:pageIndex,firstCase,nil] ];
for this:
- (void) reloadPage: (NSArray *) args { NSString *pageIndex = [args objectAtIndex:0]; NSString *firstCase = [args objectAtIndex:1]; }