NSTimer non repeating timer - retrieve timeInterval.

Discussion in 'iPhone/iPad Programming' started by pranavss11, Jul 30, 2010.

  1. macrumors 6502

    Joined:
    Dec 29, 2007
    Location:
    San Jose
    #1
    I have posted this question on stackoverflow but have not gotten any responses. Maybe someone here will be more helpful ? :D


    http://stackoverflow.com/questions/3373136/nstimer-non-repeating-timer-retrieve-timeinterval


     
  2. macrumors 603

    Joined:
    Aug 9, 2009
    #2
    Seems obvious to me, but why not compare fireDate to now? Surely this is a simpler calculation than summing the timer's remaining time, the time spent suspended, etc. and comparing to the original 300.

    If fireDate won't work for you, then put the interval in the userInfo dictionary.
     

Share This Page