Reputation: 9660
I have the following code:
#import <Foundation/Foundation.h>
@interface BBUtils : NSObject
{
}
-(CGPoint ) randomPoints;
@end
For some reason it complains on the randomPoints method saying Expected a Type? Why?
Upvotes: 0
Views: 546
Reputation: 12230
Add proper import in your header to expose structs declared by CoreGraphics:
#import <CoreGraphics/CoreGraphics.h>
Upvotes: 2
Reputation: 26351
This could happen if CoreGraphics is not available. Then you'll need to link it explicitly:
Upvotes: 4