UIDocument From Scratch | raywenderlich.com

Learn how to add document support to your app using UIDocument.

This is a companion discussion topic for the original entry at https://www.raywenderlich.com/1809473-uidocument-from-scratch

An issue in the Finished project.
After opening the same entry again I can’t see the thumbnail.

Follow these steps to see it.

  • Add new entry by selecting a photo and a title
  • Select Done
  • open the same entry again
  • Select Done
  • Now you will see blank for thumbnail in table view cell.

Fix : Add these lines in DetailViewController.swift after line 83.

self?.newImage = self?.document?.photo?.mainImage
self?.newThumbnailImage = self?.document?.photo?.thumbnailImage

@wimansha Thank you for sharing the solution - much appreciated! :]

This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you!