[iPhone] NSURLConnection cache problem?
[iPhone] NSURLConnection cache problem?
- Subject: [iPhone] NSURLConnection cache problem?
- From: "Eric E. Dolecki" <email@hidden>
- Date: Fri, 15 May 2009 13:17:43 -0400
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@hidden)
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:
This email sent to email@hidden