问题
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