Storing images locally on an iOS device

前端 未结 3 1045
别跟我提以往
别跟我提以往 2020-11-28 02:56

Some iOS photo-related apps store images created with the app somewhere other than the photo library. For example Fat Booth shows a scrolling list of photos created with the

3条回答
  •  我在风中等你
    2020-11-28 03:31

    You can do it with core data by storing binary data, but its not recommended. There is a much better way - especially for photos. Your application has a documents/file directory that only your app can access. I recommend starting here for the concepts and how to access it. Its relatively straightforward. You may want to combine this with core data to store file paths, metadata, etc. http://developer.apple.com/library/mac/#documentation/FileManagement/Conceptual/FileSystemProgrammingGUide/FileSystemOverview/FileSystemOverview.html

提交回复
热议问题