不知道能不能实现自动添加实例变量?好像以前在哪儿看过现在不用手动加了。请知道的人教教我,谢谢。
.h:
@interface Class : UIView
@property (nonatomic, strong) NSString *testString;
@end
.m:
@interface Class () {
NSString *_testString;
}
@end
@implementation Class
@synthesize testString = _testString;