Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- func updateFriendSaidHi(friend: Friends, in context: NSManagedObjectContext = CoreDataStack.shared.container.newBackgroundContext()){
- context.performAndWait {
- // Update value to true in core data
- friend.saidHi = true
- saveToPersistentStore()
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement