I'm very confused about an error I'm getting. I have the following code:
In View1.m I make this call:
[iconView addIconWithType:IconTypeStandard];
IconView.h
typedef enum {
IconTypeStandard = 0,
IconTypeNew = 1,
} IconType;
-(void)addIconWithType:(IconType)iconType;
IconView.m
-(void)addIconWithType:(IconType)iconType {
...
}
Icon.h
#import "IconView.h"
@interface Icon : UIView {
}
-(Icon *)initWithFrame:(CGRect)frame;
-(void)type:(IconType)iconType;
That line is causing an error of 'Expected ')' before 'IconType'', but i have no idea why?
Icon.m
-(void)type:(IconType)iconType {
...
}