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

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

C#: Application without a window or taskbar item (background app) that can still use Console.WriteLine() -

unicode - Are email addresses allowed to contain non-alphanumeric characters? -