I'm following a tutorial, created a new iPhone project, then added a new Cocoa touch Class to the project. It's a subclass of NSObject.
In the header, i type the following:
And i get the error, "Unknown type name CGPoint"
It's very strange considering foundation has been imported, I have no idea why this is happening. I'm using Xcode 6.01.
Is there something really stupid i'm overlooking?
----------
OK looks like it's because ei haven't import UIKit but I never had to do this before. Has a default setting changed in 6.01?
In the header, i type the following:
Code:
#import <Foundation/Foundation.h>
@interface BNRLine : NSObject
@property (nonatomic) CGPoint begin;
And i get the error, "Unknown type name CGPoint"
It's very strange considering foundation has been imported, I have no idea why this is happening. I'm using Xcode 6.01.
Is there something really stupid i'm overlooking?
----------
OK looks like it's because ei haven't import UIKit but I never had to do this before. Has a default setting changed in 6.01?