I am running a test with NSURLConnection fetching an image from a url - it seems to work fine in the simulator a few times, on an actual device it always seems to fail. I am simply loading an image into a UIView. cachePolicy is set to NSURLRequestReturnCacheDataElseLoad. I have defined a NSMutableData object with a pointer of receivedData.
When the thing is run on a new image url the first time, things seem to work fine in the simulator. If I quit the app and run again, my receivedData becomes nil in the connectionDidFinishLoading method. I'm not sure why this is. I get a reported bytes total of 19534 (when the actual images are much larger than that... I put the project here if any could take a quick look (it's just a small test project): http://www.ericd.net/iphone/URLTest.zip I'd appreciate any feedback!!! Eric _______________________________________________ Cocoa-dev mailing list ([email protected]) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to [email protected]
