Unknown type name 'UIImage'

Defining a new UIImage object and  getting this error: Unknown type name 'UIImage'



#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

Popüler Yayınlar