Skip to content

Instantly share code, notes, and snippets.

View Andhar7's full-sized avatar
🏠
Working from home

Andrej Kling Andhar7

🏠
Working from home
View GitHub Profile
@alexpaul
alexpaul / CoreData-Saving-Array.md
Last active June 16, 2023 12:23
Core Data saving an array.

Core Data (Saving an array)

While saving an array to Core Data is supported, one of the first questions you will want to ask, if this array should be a relationship to another entity instead? It the answer is no, then continue reading on....

1. Core Data Model (Graphical Interface)

Set the attribute, in this case, the type you want to save as an array to Core Data supported type Binary Data

Example
attribute is hobbies

@dylankbuckley
dylankbuckley / LearnSwiftPartTwo.playground
Created December 12, 2016 22:14
Learn Swift 3.0 & Xcode 8 (Part 2 - Swift Basics)
// For Loop
for index in 1...5 {
print("\(index) times 2 is \(index * 2)")
}
// Array
let myAnimals = ["Fluffy", "Stevey", "Rabbit", "Doggy"]
let randomNumbers = [1, 2, 3, 4, 5]