自我.伊瓦尔和伊瓦尔之间的区别?
aclass.h@interface aClass : NSObject { NSString *name;}@property (nonatomic, retain) IBOutlet NSString *name;@end
aclass.m @implementation aClass@synthesize name;- (void)dealloc { [name release]; [super dealloc]; }- (void)test1 { name = @"hello";}- (void)test2 { self.name = @"hello";}
name = @"hello"
self.name = @"hello"