Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dusker

macrumors member
Original poster
May 31, 2009
41
0
Hi,
i decided to change an approach to model in the next release of my app. And here's how i'd like to be done: on a server side i generate a sqlite database (using php5) with all data in it. Now, i'd my iphone app to be able to download the entire sqlite file so it can be later used offline.
Could you recommend an approach/tutorial to download sqlite files off internet?
greetings
peter
 
Use NSURLConnection to download it, and then write the data to a file inside the documents folder, which you can get via the NSSearchPathForDirectoriesInDomains function (search this site for sample code on that function).
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.