Select set amount of characters from text

Discussion in 'iOS Programming' started by newtoiphonesdk, Mar 22, 2011.

  1. newtoiphonesdk macrumors 6502a

    Joined:
    Jul 30, 2010
    #1
    Ok. I created an NSString that is the document.body.innerText from the webView that is currently loaded. Is there a way I can select just the first 140 characters from that text and email that?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    If you look at the NSString documentation is there a useful looking method that will return a part, or substring if you will, of the string?
     

Share This Page