Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 09-19-2009, 03:17 AM   #3 (permalink)
williamsbm2000
iPhone Developer
 
Join Date: Jul 2009
Location: Eugene, Oregon
Posts: 97
Default

Quote:
Originally Posted by eggapps View Post
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
williamsbm2000 is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,860
Threads: 89,223
Posts: 380,683
Top Poster: BrianSlick (7,129)
Welcome to our newest member, randybourassa
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:26 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.