Quote:
Originally Posted by eggapps
Hi there, I am new on board. I have a little little problem. I succeeded in creating the application as they did it the tutorial but now my app seems to have a problem with linking the things...
/Location/Classes/../MainView.m:16: warning: 'NSTimer' may not respond to '+scheduledTimerWithTimeInterval::target:selector: userInfo:repeats:'
- (IBAction)startLoadingRed {
progressView.progress = 0.0;
progressLabel.text = @"Color Loading";
timer = [NSTimer scheduledTimerWithTimeInterval:1:0 target:self selector:@selector(updateProgressRed) userInfo:nil repeats:YES];
}
|
The bold line should read:
Code:
timer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(updateProgressRed) userInfo:nil repeats:YES];
You simply had a typo. The error told you the _exact_ problem, as there is no +scheduledTimerWithTimerInterval::target:self:sele ctor:userInfo:repeats: method. The extra : in there should throw a red flag.
Brian