Unknown type name 'UIImage'
Defining a new UIImage object and getting this error: Unknown type name 'UIImage'
ADD #import <UIKit/UIKit.h> in your header file ! ;)
#import <Foundation/Foundation.h> @interface CCTile : NSObject @property (strong, nonatomic) NSString *story; @property (strong, nonatomic) UIImage *background; // Error: Unknown type name 'UIImage' @end
ADD #import <UIKit/UIKit.h> in your header file ! ;)
Yorumlar
Yorum Gönder