[英]How to encode/decode a long long property with NSCoder?
How to decode a long long type property in initWithCoder:
and encode in encodeWithCoder:
with NSCoder in iOS? 如何解码
initWithCoder:
的long long类型属性initWithCoder:
并在encodeWithCoder:
编码encodeWithCoder:
在iOS中使用NSCoder?
Thanks. 谢谢。
在iOS上, long long
是64位,因此请使用encodeInt64: forKey:
和decodeInt64ForKey:
方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.