iOS App 有許多儲存資料的方法,其中 UserDefaults 應該是其中最簡單的方法。因為它可以儲存 Data 型別的資料,所以我們只要將資料轉換成 Data 型別(比方利用 PropertyListEncoder…
Array
struct Array<Element>