Avatar
質問させてください。 SwiftUIでCoreDataに["A","B","C"]のような文字配列を保存したいのですが、やり方がわかりません。 一応解答らしき記事を見つけはしたのですが、なかなか解読できずにいます。 https://stackoverflow.com/questions/29825604/how-to-save-array-to-coredata 「If keeping it simple and store an array as a string」あたりだと思うのですが、 ・このコードをどこに書けばいいのか ・「xcdatamodel」でどの型を宣言すればいいのか 教えていただけると助かります。
I need to save my array to Core Data. let array = [8, 17.7, 18, 21, 0, 0, 34] The values inside that array, and the number of values are variable. 1. What do I declare inside my NSManagedObject...