Questions tagged «magicalrecord»

6
如何将数组保存到CoreData?
我需要将阵列保存到Core Data。 let array = [8, 17.7, 18, 21, 0, 0, 34] 该数组中的值以及值的数量是可变的。 1.我在NSManagedObject类中声明什么? class PBOStatistics: NSManagedObject, Equatable { @NSManaged var date: NSDate @NSManaged var average: NSNumber @NSManaged var historicAverage: NSNumber @NSManaged var total: NSNumber @NSManaged var historicTotal: NSNumber @NSManaged var ordersCount: NSNumber @NSManaged var historicOrdersCount: NSNumber @NSManaged var values: …
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.