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 04-25-2009, 10:51 PM   #4 (permalink)
jtara
Registered Member
 
Join Date: Jan 2009
Location: San Diego, CA
Posts: 406
Default

Dunno, haven't tried it.

I assume you are maintaining state in your object. So, why not just call ScheduleTimerWithTimeInterval, as you did originally? Your timerUpdate method would examine state to see which card to flip, and flip it.

You really should be organizing your app to asynchronously respond to events. The timer is just another event. In this case, it's telling you "time to flip another card!"

Imagine you put in a button, "Flip the next card". The only difference is, it's the timer telling you to flip the next card, not the button.
jtara is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,843
Threads: 89,211
Posts: 380,652
Top Poster: BrianSlick (7,129)
Welcome to our newest member, nataliekendal
Powered by vBadvanced CMPS v3.1.0

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