类型一:直接写在大括号中
@interface NoteDAO : NSObject
{
sqlite3 *db;
}
此声明中变量为私有;
类型二:使用@property 来声明变量
@property (strong, nonatomic) UIWindow *window;
在.h中外部可以访问,.m中为私有;
posted on 2015-05-20 10:22 coderJin 阅读(143) 评论(0) 收藏 举报
博客园 © 2004-2025 浙公网安备 33010602011771号 浙ICP备2021040463号-3