ios - NSData - loading data from URL issue -
can explain me why after executing 2 lines of code valid nsurl, data = nil , data 2 = 52104bytes ??
nsdata *data = [nsdata datawithcontentsofurl:aurl]; nsdata *data2 = [[nsfilemanager defaultmanager] contentsatpath:[aurl absolutestring]];
i think improve if utilize nsurlconnection , nsurlconnectiondelegate if aurl remote url or aurl not local source.
ios objective-c nsdata
No comments:
Post a Comment