I have long integer value ( ex: 2705758126 ) in NSString.
When i try to show it: NSLog(@"%i", [myValue integerValue]); it return: 2147483647.
How to show, compare and etc. this long integer
Try with
NSLog(@"%lld", [myValue longlongValue]);
The documentation recommends using @"%ld" and @"%lu" for NSInteger and NSUInteger, respectively. Since you're using the integerValue method (as opposed to intValue or longLongValue or whatever), that will be returning an NSInteger.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With