在下面的摘錄背景,調用類方法中使用目標C
/*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];
同樣,如何使用performSelectorInBackground
調用類方法的背景嗎?
如果可能,請解釋! 請人攜手..
薰得像魅力! – itechnician