当我尝试声明 sqlite3 对象时,在下面的代码中出现编译错误。“数据库”不是对象类型吗?为什么会发生这种情况,我该如何解决?
#import <Foundation/Foundation.h>
#import <sqlite3.h>
@interface BasicDao : NSObject
@property (nonatomic, retain) sqlite3 *database; //error : Property with 'retain (or strong)' attribute must be of object type
@end