今天在用XCode6写demo定义数据模型的时候出现这样一个问题
@property (nonatomic, strong) UIImage *cacheImage;
报Unknown type name 'UIImage'和Property with 'retain(or strong)' attribute must be of object type这两个错误
在头部引入
#import <UIKit/UIKit.h>
问题解决。