#import <Foundation/Foundation.h>
@interface FaceObject : NSObject
@property (strong, nonatomic) UIImage *image;
@end
Xcode gives an error saying "unknown type name 'UIImage' unless I import UIKit.h, but in Xcode 5 i would have not gotten this error and did not need to import UIKit -- is there any explanation for this? Am I doing something wrong? Thanks!
In 2015 -- still getting this error. I always forget to include
#import <UIKit/UIKit.h>
That should take care of it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With