How to encode/decode a long long property with NSCoder?
Asked Answered
D

1

8

How to decode a long long type property in initWithCoder: and encode in encodeWithCoder: with NSCoder in iOS?

Thanks.

Drippy answered 21/11, 2012 at 4:58 Comment(0)
D
7

On iOS a long long is 64 bit, so use the encodeInt64: forKey: and decodeInt64ForKey: methods.

Damage answered 21/11, 2012 at 5:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.