Objective-C: Extract Text From a URL
I a开发者_JAVA技巧m wondering how i would go out onto the web and grab a body of text from a specific website, then display it to a user within my app. I got the whole display part, it is the grabbing text from a URL that has me stumped.
You can use TFHpple, a XPath Parser which allows you to parse HTML and other DOM documents
You want stringWithContentsOfURL.
精彩评论