Time Format Question

Discussion in 'iOS Programming' started by jchildress, Aug 22, 2008.

  1. jchildress
    Expand Collapse
    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. robbieduncan
    Expand Collapse
    Moderator emeritus

    robbieduncan

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

    Joined:
    Jul 9, 2008

Share This Page