Core Data Boolean property NSNumber doesn't remember it's boolean

后端 未结 3 1042
暗喜
暗喜 2021-01-12 12:57

I have a model with a property that looks like this:

\"enter

When I set its va

3条回答
  •  感动是毒
    2021-01-12 13:35

    What is up with that?

    From the documentation:

    Note that number objects do not necessarily preserve the type they are created with.

    That's another inconsistency-for-optimization in Cocoa.

提交回复
热议问题