nsdocumentdirectory
Displaying photos from NSDocumentDirectory
I\'m developing this application on an iPad. These codes for a \'Browse\' button allows the user to view the photos from the iPad\'s gallery.[详细]
2023-04-10 17:08 分类:问答What is the documents directory (NSDocumentDirectory)?
Can someone explain to me what the documents directory is on an iOS app and when to use it? Here is what I believe at present:[详细]
2023-03-24 06:00 分类:问答How to delete old files from document directory in objective-c? [closed]
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its开发者_JAVA技巧 current form.[详细]
2023-03-19 09:21 分类:问答NSDocumentDirectory or NSBundle resourcePath with Sqlite?
i was wondering why we search a path with NSDocumentDirectory at first here : NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask,YES);[详细]
2023-03-19 05:30 分类:问答max length of file name
i am using the code below to save an image in the NSDocumentDirectory -(BOOL)saveImage:(UIImage *)image name:(NSString *)name{[详细]
2023-03-18 14:52 分类:问答Read a .txt file inside documents directory
How can I read a .txt file inside documents directory? 开发者_运维技巧Can you show me code?NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);[详细]
2023-03-16 12:50 分类:问答Is there a safer way to create a directory if it does not exist?
I\'ve found this way of creating a directory if it does not exist. But it looks a bit wonky and I am afraid that this can go wrong in 1 of 1000 attempts.[详细]
2023-03-08 03:07 分类:问答Better way of updating images bundled with the app
In our iOS app we have close to a hundred image files in resources bundle. Now we want to make them network based since the images may change (updated/no longer needed/additions) at any time. We are d[详细]
2023-03-07 13:45 分类:问答Avoiding to save image duplicates
My app allow users to choose imgs and associate them to some 开发者_JS百科text. When the user choose an image from the photo roll, I copy it in the Documents directory.[详细]
2023-03-05 17:02 分类:问答Is it even possible for one iOS app to access another app's Caches directory?
I\'m writing a unit test with GHUnit. I would like to check if a file is being generated in the Caches directory within the Library directory of an开发者_运维知识库other app. Is this feasible, or are[详细]
2023-03-05 02:46 分类:问答