Created
September 12, 2016 14:52
-
-
Save tonisuter/c8b4a7d53c9a6fd51782def3272eb57e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let fetchRequest: NSFetchRequest<MemoryPair> = MemoryPair.fetchRequest() | |
fetchRequest.sortDescriptors = [NSSortDescriptor(key: "creationDate", ascending: true)] | |
do { | |
let pairs: [MemoryPair] = try coreDataStack.context.fetch(fetchRequest) | |
// display the memory pairs | |
} catch { | |
print(error) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment