Time Format Question

Discussion in 'iPhone/iPad Programming' started by jchildress, Aug 22, 2008.

  1. macrumors member

    Joined:
    Jul 9, 2008
    #1
    I'm using an NSTimer to display mins and secs ticking down in a format like: "13:23". I wrote a function to format the integer seconds of the timer's current remaining time into the format I want, returning a string. But it made me wonder if there were any built-in objects or methods that will already do this for me?
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Have a look at the NSDateFormatter documentation.
     
  3. thread starter macrumors member

    Joined:
    Jul 9, 2008
    #3
    Thanks, I'll check that out.
     

Share This Page