简体   繁体   English

如何使用NSCoder对长长的属性进行编码/解码?

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM