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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-19-2009, 03:58 PM   #7 (permalink)
SkylarEC
New Member
 
Join Date: Nov 2008
Posts: 74
SkylarEC is on a distinguished road
Default

RickMaddy, I have had absolutely no problem on the iPhone setting the SEL variable and using it. That's why the SEL variable exists, after all.

Code:
//Create your selectors
SEL myMethod = @selector(aMethod:);
//etc...

/*____________________________The rest of your code.____________________________*/

//
aTimer = [NSTimer scheduledTimerWithTimeInterval: 0.75 target:self selector:myMethod userInfo:nil repeats:YES];
As you see, just set it and use it as you would any other variable.
SkylarEC is offline   Reply With Quote
 

» Advertisements
» Online Users: 426
19 members and 407 guests
7twenty7, ArthurOff, baja_yu, BdR, BumChinBooth, dansparrow, Duncan C, GraffitiCircus, ioani, jeroenkeij, n00b, nyoe, QuantumDoja, rraagg, teebee74, TheStalker, TheTakeOver, WeaselPig, xerohuang
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,634
Threads: 94,093
Posts: 402,792
Top Poster: BrianSlick (7,990)
Welcome to our newest member, nyoe
Powered by vBadvanced CMPS v3.1.0

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