Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 01-22-2012, 08:46 AM   #1 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 82
Guthook is on a distinguished road
Default Switched from TTURLCache to ASIDownloadCache

I just switched my app from Three20 to ASI asynchronous requests for downloading OpenCycleMap map tiles to my mapView. ASI seems much simpler to implement (which is perfect for me), but I have two minor issues:

1- If a map tile doesn't exist for a part of the map, ASI continues trying to download it for several minutes, whereas TT stops after a few seconds. I'm worried that this could affect the battery usage of the app.

2- When TT stores the map tile to the cache, it seems to combine the metadata with the .png file. ASI stores the .png and a separate file of the same name with ".cachedheaders" suffix. This means there are twice as many files in the ASIDownloadCache, and the total hard drive space taken up is about 30% more (map tiles range from 8 to 30 KB, cachedheaders files each 4 KB, but there are several thousand of each). I'm afraid this will eat up a lot of disk space, since I want to save cached maps for offline use.

Does anyone know of a workaround for these issues, or should I just live with it? I can provide code snippets later if that helps answer the question.
Guthook is offline   Reply With Quote
Old 01-23-2012, 12:15 PM   #2 (permalink)
Registered Member
 
Join Date: Dec 2010
Posts: 82
Guthook is on a distinguished road
Default

Bump... Sorry, still no ideas on my end. Does anyone else have these issues?
Guthook is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 390
9 members and 381 guests
7twenty7, Atatator, FrankWeller, glenn_sayers, iphonedevshani, MAMN84, QuantumDoja, tim0504, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,674
Threads: 94,122
Posts: 402,907
Top Poster: BrianSlick (7,990)
Welcome to our newest member, Atatator
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:47 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0