Just get part of a NSString

Discussion in 'Mac Programming' started by ctalmeida, May 18, 2011.

  1. macrumors newbie

    Joined:
    May 17, 2011
    #1
    Hi,

    Sorry again for the ignorance.

    I have a NSString str with "ABCDEFGHI" on it.

    I am for many hours trying to find a way to retrive from letter i n letters and have it in another NSString.
    Like NSString str2 = [str GETPARTOFSTRINGFROM:2 LENGHT:3] would return

    "CDE"

    Anyone has a simple routine to do that? Is there a function that would do that?

    Thanks again for the help.
     
  2. Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
  3. thread starter macrumors newbie

    Joined:
    May 17, 2011
    #3

Share This Page