Use Swift's Date with CoreData

后端 未结 2 1414
孤独总比滥情好
孤独总比滥情好 2021-02-13 16:26

I have a lot of date fields in my database model. CoreData allows to use NSDate or TimeInterval to save dates depending on \"Use Scalar Type\" option.

However b

2条回答
  •  逝去的感伤
    2021-02-13 17:07

    There is a workaround here that works, if you set it as transformable and set its custom class to Date it simply works.

提交回复
热议问题