Best way to implement Enums with Core Data

前端 未结 9 1592
天命终不由人
天命终不由人 2020-11-28 17:55

What is the best way to bind Core Data entities to enum values so that I am able to assign a type property to the entity? In other words, I have an entity called Item<

9条回答
  •  北海茫月
    2020-11-28 18:33

    An alternative approach I'm considering is not to declare an enum at all, but to instead declare the values as category methods on NSNumber.

提交回复
热议问题