Remove leading character from an NSString

Discussion in 'iPhone/iPad Programming' started by ross.32, Jun 27, 2009.

  1. macrumors 6502

    Joined:
    May 27, 2007
    #1
    I know there has to be a really simple way to do this, but I can't figure it out.

    I have a bunch of radar site NSStrings (such as KTLX or KDET). I need a method to remove the first letter (so a method that would return TLX or DET).

    Thanks!
     
  2. macrumors 6502a

    Joined:
    Mar 19, 2008
    Location:
    North Shore, MA
    #2
    Take a look at the "Dividing Strings" section of the NSString documentation.
     
  3. thread starter macrumors 6502

    Joined:
    May 27, 2007
    #3
    Wow that was really easy. Used -substringFromIndex:1

    Thanks!
     

Share This Page