NSTimer non repeating timer - retrieve timeInterval.

Discussion in 'iOS Programming' started by pranavss11, Jul 30, 2010.

  1. macrumors 6502

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


  2. macrumors 604

    Aug 9, 2009
    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