如何使用NSCoder编码/解码很长的属性? [英] How to encode/decode a long long property with NSCoder?
本文介绍了如何使用NSCoder编码/解码很长的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在iOS中使用NSCoder在initWithCoder:
中解码 long long 类型的属性并在encodeWithCoder:
中进行编码?
How to decode a long long type property in initWithCoder:
and encode in encodeWithCoder:
with NSCoder in iOS?
谢谢.
推荐答案
在iOS上,long long
是64位,因此请使用encodeInt64: forKey:
和decodeInt64ForKey:
方法.
On iOS a long long
is 64 bit, so use the encodeInt64: forKey:
and decodeInt64ForKey:
methods.
这篇关于如何使用NSCoder编码/解码很长的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文