Objective-C中@synthesize合成变量名以及使用方法
1、Person.h
#import
@interface Person:NSObject
@property (nonatomic, copy) NSString* name;
-(id) initWithName:(NSString*) name;
-(void) info;
@end
2、Person.m
#import "Person.h"
@implementation Pe
原创
2017-05-21 19:33:05 ·
530 阅读 ·
0 评论