如何使用NSCoder编码/解码长期属性?

如何解码initWithCoder:long longtypes属性initWithCoder:并在encodeWithCoder:编码encodeWithCoder:在iOS中使用NSCoder?

谢谢。

在iOS上, long long是64位,所以使用encodeInt64: forKey:decodeInt64ForKey:方法。