Changing resource file in new version of an app

Posted by Michael Frost on Stack Overflow See other posts from Stack Overflow or by Michael Frost
Published on 2010-05-11T19:22:52Z Indexed on 2010/05/11 19:34 UTC
Read the original article Hit count: 302

Filed under:
|
|
|
|

Hi, I'm working on an update for an already existing iphone app. The existing version contains a .sql database file which is used in the app.

I would like to use a new version of this file in the update of the app. On the first startup of the existing app the .sql file is placed in the caches directory of the users iphone. From what I can understand from Apple's documentation the files in the caches directory might get copied from the old app to the new versions caches directory when the user updates the app. Does this mean that for being sure my new file is used in the updated version I should use a different name of the file?

And what happens with the old file? Do I have to manually delete it from inside the app? Which means I have to check if it's there at every startup of the app?

Thanks Michael

© Stack Overflow or respective owner

Related posts about iphone

Related posts about apple