I am using the code below. I could successfully get the string value. But when it is converted to NSInteger
, a minus appears in the front, and the value changes. Am I missing something?
NSInteger bannerStamp = [[eachDict objectForKey:@"timeStamp"] integerValue];
NSLog(@"%@",[eachDict objectForKey:@"timeStamp"]);
NSLog(@"%d",bannerStamp);
OUTPUT
2015-01-01 10:44:52.482 SalesApp[24570:60b] 3597478187
2015-01-01 10:44:54.094 SalesApp[24570:60b] -697489109