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

List<T>().Add problem C# -

Javascript natural sort array/object and maintain index association -