经验之谈—KVC(forKey,forKeyPath)
KVC是Cocoa一个大招,非常牛逼。利用KVC可以随意修改一个对象的属性或者成员变量(并且私有的也可以修改) 如:Person.m文件中:@implementation Person{ @private double _height;}- (void)printHeight{ NSLog(@"height是%f", _height);}@endPerson