// [self setValuesForKeysWithDictionary:@{}]; -(void)setValue:(id)value forKey:(NSString *)key{ if([value isEqualToString:@"key"]){ self.nameString=key; }else{ [super setValue:value forKey:key]; } }
// [self setValuesForKeysWithDictionary:@{}]; -(void)setValue:(id)value forKey:(NSString *)key{ if([value isEqualToString:@"key"]){ self.nameString=key; }else{ [super setValue:value forKey:key]; } }
转载于:https://www.cnblogs.com/mojiewei/p/6322953.html