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 03-03-2009, 07:05 AM   #6 (permalink)
riderc1
Registered Member
 
Join Date: Jan 2009
Location: Alexandria KY
Posts: 25
riderc1 is on a distinguished road
Default

Quote:
Originally Posted by RickMaddy View Post
Why would you create an array of timers? Just have an array of delay values. Create a timer with the first delay. When it goes off create a new timer with the next delay, etc.
I think I need an array so I can keep a reference to individual timers. In my app, the user might tap a button to end the current screen and flip back to the main screen. In that event, I need to stop the timers that haven't fired yet.

I'm currently researching how to do the following in my code:
1. Detect if a timer still exists. Since I have this in an array, I should be able to check for null? Ex. if(timers[i]==NULL)
2. If a timer has not fired and the user wants to go back to the previous screen, get rid of the timer. [timers[i] invalidate]
riderc1 is offline   Reply With Quote
 

» Advertisements
» Online Users: 454
21 members and 433 guests
7twenty7, acegames, baja_yu, buggen, BumChinBooth, ChrisYates, daud18, dbramhall, Duncan C, haisergeant, hussain1982, ioani, jbro, LunarMoon, mer10, monu_rastogi, nyoe, orninn, QuantumDoja, TheStalker, TheTakeOver
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,634
Threads: 94,095
Posts: 402,796
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 09:10 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.