@property NSString *name
即在接口中声明 - (void)setName:(NSString *)name;
- (NSString *)name;
@synthesize name = name
即在对象中声明了上面接口的实现方法
- (void)setName:(NSString*)nameString{
name= nameString;
}
- (NSString*)name{
returnname;
}
@property NSString *name
即在接口中声明 - (void)setName:(NSString *)name;
- (NSString *)name;
@synthesize name = name
即在对象中声明了上面接口的实现方法
- (void)setName:(NSString*)nameString{
name= nameString;
}
- (NSString*)name{
returnname;
}