Skip to content

Instantly share code, notes, and snippets.

@tonisuter
Created September 12, 2016 14:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tonisuter/0511db78b9f743298d480d69a1e34167 to your computer and use it in GitHub Desktop.
Save tonisuter/0511db78b9f743298d480d69a1e34167 to your computer and use it in GitHub Desktop.
let memoryPair = MemoryPair(context: coreDataStack.context)
memoryPair.creationDate = Date()
memoryPair.image1 = image1
memoryPair.text1 = code1
memoryPair.image2 = image2
memoryPair.text2 = code2
coreDataStack.saveContext()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment