objective c - NSNumber integerValue returns incorrect value -


i have large integer returned json string server iphone app. use:

[results objectforkey:@"id"] 

and things work fine large "id" results don't match sent. standard method integer value of object returned json?

try with

  nslog(@"%lld", [[results objectforkey@"id"] longlongvalue]); 

an int have value between

int_min: -2147483648
int_max: 2147483647

and long long have value between

llong_min: -9223372036854775808
llong_max: 9223372036854775807

if longer that, might try manipulating string.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -