XCode6定義數據模型的錯誤

今天在用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>
問題解決。


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章