objective c - How to get content from URL asynchronously? -


i'm trying here create nsxmlparser content of url, work there way can make url content received asynchronously , later create nsxmlparser?

nsurl *url = [[nsurl alloc] initwithstring: @"http://www.xmlfile.com"]; nsxmlparser *parser = [[nsxmlparser alloc] initwithcontentsofurl:url]; [url release]; 

use nsurlconnection fetch data asynchronously nsdata, use initwithdata instead of initwithcontentsofurl.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -