Skip to content

Instantly share code, notes, and snippets.

@atomicbird
Created July 15, 2016 03:58
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 atomicbird/efbcb04eef24f074ad32dc6f9318965f to your computer and use it in GitHub Desktop.
Save atomicbird/efbcb04eef24f074ad32dc6f9318965f to your computer and use it in GitHub Desktop.
let fetchRequest: NSFetchRequest<Event> = Event.fetchRequest()
let result : [Event]? = try? context.fetch(fetchRequest)
for event in result ?? [] {
print("time: \(event.timeStamp)")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment