Where to save databases in iOS apps? -


this may simple question wanted know whether apple reject app if save database inside app's library folder (not inside cache). plan because while keeping database , other files inside caches folder os delete them in case of low memory. want them not deleted @ case. example inn below code have changed nscachesdirectory nslibrarydirectory save files inside library.

nsarray *path2 = nssearchpathfordirectoriesindomains(nslibrarydirectory, nsuserdomainmask, yes); nsstring *documentsdirectory2 = [path2 objectatindex:0]; nsstring *path = [documentsdirectory2 stringbyappendingpathcomponent:@"/savednetsheets.xml"]; 

please give valuable suggestions , thoughts abouts this.

if want database file persist , automatically backed during device synchronisation, might want save in document directory nssearchpathfordirectoriesindomains(nsdocumentdirectory, nsuserdomainmask, yes);

that stored if use coredata framework.


Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -