isKindOfClass是什么意思?有什么作用 (转)
NSString *respCode = [dict objectForKey:@"respCode"]; //respCode is null if(!respCode||[respCode isKindOfClass:[NSNull class]]) { //... }
最佳答案
isKindOfClass是属于哪种NSObject类型。这个只有NSObject对象才意义。比如:
UILabel *label = [[UILabel alloc] init]; if([label isKindOfClass:[UILabel class]]) { NSLog(@"YES, I am a UILabel");