Can anyone show me how to correct this implementation error:
- [ViewController.m]
#import "ViewController.h"
#import <QuartzCore/QuartzCore.h>
@interface ViewController ()
@end
@implementation ViewController {
int currentValue;
int targetValue;
int score;
int round;
}
@synthesize slider;
@synthesize targetLabel;
@synthesize scoreLabel;
@synthesize roundLabel;
- [ViewController.h]
MPMoviePlayerController *moviePlayer;
@interface ViewController : UIViewController
- (IBAction)showAlert;
- (IBAction)sliderMoved
UISlider *)slider;
- (IBAction)startOver;
- (IBAction)showInfo;
@property (nonatomic, strong) IBOutlet UISlider *slider;
@property (nonatomic, strong) IBOutlet UILabel *targetLabel;
@property (nonatomic, strong) IBOutlet UILabel *scoreLabel;
@property (nonatomic, strong) IBOutlet UILabel *roundLabel;
@end
----------
that
should be a : (colon)
- [ViewController.m]
#import "ViewController.h"
#import <QuartzCore/QuartzCore.h>
@interface ViewController ()
@end
@implementation ViewController {
int currentValue;
int targetValue;
int score;
int round;
}
@synthesize slider;
@synthesize targetLabel;
@synthesize scoreLabel;
@synthesize roundLabel;
- [ViewController.h]
MPMoviePlayerController *moviePlayer;
@interface ViewController : UIViewController
- (IBAction)showAlert;
- (IBAction)sliderMoved
- (IBAction)startOver;
- (IBAction)showInfo;
@property (nonatomic, strong) IBOutlet UISlider *slider;
@property (nonatomic, strong) IBOutlet UILabel *targetLabel;
@property (nonatomic, strong) IBOutlet UILabel *scoreLabel;
@property (nonatomic, strong) IBOutlet UILabel *roundLabel;
@end
----------
that
Last edited: