title: How to use Offline Cloudmade Maps in an iPhone App
body: <p>I’ve looked through the posts on the Cloudmade site <a href="http://support.cloudmade.com/forums/iphone-sdk/posts/104/show?page=1" rel="nofollow">here</a> and I get some of it, but not all. I've posted the question below, but haven't had the help I need, so I thought I'd ask the question here.</p>
  
  <p>I can see that I need to:</p>
  
  <ul>
  <li>download the tiles for the required area to my Mac (but can’t see how to do this)</li>
  <li>convert these to a sqlite database using the map2sqlite utility, changing the code to output the tiles to a table called “ZCACHE”, not “tiles”</li>
  <li>Copy the DB to the Application Bundle</li>
  <li>insert some code to copy this DB on first run, from the Application Bundle to the Documents Directory</li>
  <li>Somehow get App to use this DB and not an online one – I can’t see how that’s done.</li>
  </ul>
  
  <p>Any help would be warmly welcomed,</p>
  
  <p>Chris.</p>