摘要: 方式一:直接在.h文件@interface中的大括号中声明。@interface Test : NSObject { NSString *str; // 私有变量 , 其他类无法访问,只能够该类内部单独使用}@end 方式二:在.h@interface中声明,然后再在@property中声明。... 阅读全文
posted @ 2015-12-19 11:51 Travin-C 阅读(1180) 评论(0) 推荐(0) 编辑