How to encode/decode a long long property with NSCoder?

試著忘記壹切 提交于 2019-12-07 00:30:08

问题


How to decode a long long type property in initWithCoder: and encode in encodeWithCoder: with NSCoder in iOS?

Thanks.


回答1:


On iOS a long long is 64 bit, so use the encodeInt64: forKey: and decodeInt64ForKey: methods.



来源:https://stackoverflow.com/questions/13486612/how-to-encode-decode-a-long-long-property-with-nscoder

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!