PhotoSnippet implementation

Now that we've added text snippets, let's allow the user to create photo snippets. This user story says "I want to attach a photo to a snippet". The associated tasks are:

  • Create a new subclass of SnippetData that represents the PhotoSnippet
  • Create a new view controller with a UIImagePickerController that allows the user to take a picture and save the data to the PhotoSnippet.

Just like our last story, we're first going to update our data model to support the new snippet we are creating. Then we're going to build another data entry view controller, but this time it will let the user take a picture. Don't worry, though; it might be easier than you think.

Update SnippetData model

Current task: Create a new subclass of SnippetData ...

Get Learning Xcode 8 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.