In the below excerpt,
/*A ClassName with instanceMethod and ClassMethod */
-(void)instanceMethod;
+(void)ClassMethod;
/*To call a instance method in background */
ClassName class1obj = [ClassName alloc] init];
[class1obj performSelectorInBackground:@selector(instanceMethod) withObject:nil];
Similarly, how to call a ClassMethod in background using performSelectorInBackground
?
If possible, please explain! Please guys join hands ..
Just call
[ClassName performSelectorInBackground:@selector(ClassMethod) withObject:nil];
Because Classes are objects themselves, this will work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With