How to encode/decode a long long property with NSCoder?

ios, nscoder, objective-c

Solution

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

Problem

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

Original source