Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Given that you would like to keep these images/data persistent, you now have two options: You can manage them yourself or you can utilize Core Data to help you do it. I recommend Core Data.</p> <p>If your not familiar with Core Data, you can start reading about it <a href="http://developer.apple.com/library/ios/#documentation/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html" rel="nofollow noreferrer">Here</a>. It's a little bit daunting to get started, but once you've run through a <a href="http://www.raywenderlich.com/934/core-data-on-ios-5-tutorial-getting-started" rel="nofollow noreferrer">tutorial</a> it's extremely straightforward and will make your life much easier.</p> <p>If you would like store the images yourself, or would like a more efficient Core Data structure, I recommend writing all of your images into your Documents directory as see <a href="https://stackoverflow.com/questions/1150911/save-image-to-sandbox-from-uiimage-in-iphone">Here</a>. Then you can just store File path strings in your CD structure or manually in your plist like <a href="https://stackoverflow.com/questions/6070568/ios-store-two-nsmutablearray-in-a-plist-file">This</a>.</p> <p>And finally, for loading them into your TableView you can use those stored image paths to load UIImages with:</p> <p><code>[[UIImage alloc] initWithContentsOfFile:filePath];</code></p> <p>This would be placed within your:</p> <p><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath</code> </p> <p>function so that you can set the image where you would like.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload