8

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

Thanks.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
fannheyward
  • 18,599
  • 12
  • 71
  • 109

1 Answers1

7

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

ThomasW
  • 16,981
  • 4
  • 79
  • 106