with this code, i get an error for each button in my header file. i dont see whats wrong. the error is
error: type of accessor does not match the type of property 'easy'.
i have five buttons and this error occurs five times; once for each button. i think ive read it thoroughly but i cant find my mistake. can anyone help me?
error: type of accessor does not match the type of property 'easy'.
i have five buttons and this error occurs five times; once for each button. i think ive read it thoroughly but i cant find my mistake. can anyone help me?
Code:
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
@interface OneGameView : UIView {
UIImageView *gameImage;
NSTimer *gameTimer;
NSUInteger time;
UILabel *timerLabel;
NSUInteger score;
UILabel *scoreLabel;
IBOutlet UIButton *pause;
IBOutlet UIWindow *window8;
IBOutlet UIView *newGameView;
IBOutlet UIView *pauseView;
IBOutlet UILabel *onePlayer;
IBOutlet UIButton *easy;
IBOutlet UIButton *medium;
IBOutlet UIButton *hard;
IBOutlet UIButton *back;
}
- (IBAction)pause;
- (IBAction)easy;
- (IBAction)hard;
- (IBAction)medium;
- (IBAction)back;
- (void)timer;
- (void)updateTimeLabel;
@property (nonatomic, retain) UIImageView *gameImage;
@property (nonatomic, retain) NSTimer *gameTimer;
@property (nonatomic, retain) UILabel *timerLabel;
@property (nonatomic, retain) UILabel *scoreLabel;
@property (nonatomic, retain) UIButton *pause;
@property (nonatomic, retain) UIWindow *window8;
@property (nonatomic, retain) UIView *newGameView;
@property (nonatomic, retain) UIView *pauseView;
@property (nonatomic, retain) UILabel *onePlayer;
@property (nonatomic, retain) UIButton *easy;
@property (nonatomic, retain) UIButton *medium;
@property (nonatomic, retain) UIButton *hard;
@property (nonatomic, retain) UIButton *back;
@end