Is there any way to store unsigned long in core data?

前端 未结 4 2051
悲&欢浪女
悲&欢浪女 2021-01-06 02:46

CoreData provides Integer 16, Integer 32 and Integer 64 storage, but doesn\'t support any sign qualifiers. You can store an unsigned int (32 bit) as a signed long (64 bit) a

4条回答
  •  生来不讨喜
    2021-01-06 03:38

    You could always convert [de]serialize it as a string. It isn't particularly clean, but it gives you the ability to store it as long as you can parse it back into an unsigned long.

提交回复
热议问题