Hi everyone. I'm having a go at Stanford's iPhone course and have hit upon a little problem.
I'm currently on the Assignment 2B walkthough and up to the end of the "Connect the Controller to the Model" section where you do a build to check everything's ok. It's at this point I get two AT_NAME errors.
This is what my .h and .m files with the errors look like:
controller.h
controller.m
polygonShape.h
polygonShape.m
Any help would be appreciated. Thanks.
I'm currently on the Assignment 2B walkthough and up to the end of the "Connect the Controller to the Model" section where you do a build to check everything's ok. It's at this point I get two AT_NAME errors.
This is what my .h and .m files with the errors look like:
controller.h
Code:
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "PolygonShape.h"
@interface Controller : NSObject {
IBOutlet UIButton *decreaseButton;
IBOutlet UIButton *increaseButton;
IBOutlet UILabel *numberOfSidesLabel;
IBOutlet PolygonShape *polygon;
}
- (IBAction)decrease;
- (IBAction)increase;
@end
controller.m
Code:
#import "Controller.h"
@implementation Controller
- (IBAction)decrease {
NSLog(@"Im in the decrease method");
}
- (IBAction)increase {
NSLog(@"Im in the increase method");
}
@end
polygonShape.h
Code:
@interface PolygonShape : NSObject {
@property int numberOfSides;
@property int minimumNumberOfSides;
@property int maximumNumberOfSides;
@property (readonly) float angleInDegrees;
@property (readonly) float angleInRadians;
@property (readonly) NSString *name;
}
@end
polygonShape.m
Code:
#import "PolygonShape.h"
@implementation PolygonShape
@end
Any help would be appreciated. Thanks.