Problem to get a Substring from a String?

Posted by raaz on Stack Overflow See other posts from Stack Overflow or by raaz
Published on 2010-06-10T10:50:34Z Indexed on 2010/06/10 10:52 UTC
Read the original article Hit count: 244

Hi all,

i have a little question ,i have a NSString object (\n "1 Infinite Loop",\n "Cupertino, CA 95014",\n USA\n)

and i want the Cupertino from this string

Till now i have used stringByReplacingOccurrencesOfString: and able to get "1InfiniteLoop""CupertinoCA95014"USA

But still not able get Cupertino.

Do any other method able to solve this problem?

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about iphone-sdk-3.0