Tuesday, 15 June 2010

What is the default folder to save files within an app in iOS 8 -



What is the default folder to save files within an app in iOS 8 -

i have app saves files in ios 7 without problem , can find them on ipad. path is: /var/mobile/applications/"udid"/documents same app in ios 8 , cannot save files and/or find them if saved somewhere. tries save /private/var/containers/bundles/application/"udid"/documents tries load saved file /private/var/containers/bundles/application/"udid" , unable alter directory /private/var/containers/bundles/application/"udid"/documents find file. insight?

you should read tn2406: changes app containers in ios 8, tells next (emphasis added):

ios 8 changes locations of standard directories used storing user , app info (e.g. documents, library). while locations of these directories have been implementation detail, applications improperly assume documents , library directories reside in same directory application's bundle. ios 8 splits info of application application bundle. code attempts derive path documents or library directories homecoming invalid path on ios 8. attempting access path fail, , may terminate app.

it explains how utilize nsfilemanager location of documents directory, this:

nsurl *documentsdirectoryurl = [[[nsfilemanager defaultmanager] urlsfordirectory:nsdocumentdirectory indomains:nsuserdomainmask] lastobject];

ios file

No comments:

Post a Comment