I\'m trying to convert a string value I retrieved from an XML parser into an integer. Unfortunately, I\'m finding that the integer value is not reflecting the number in the
The number is much too large to fit in a 32 bit int. What you want to do is use a long instead:
int
long
long maxTweetID = [[[_dataArray lastObject]tweetID]longValue];
EDIT:
You actually need to use long long in Objective-C:
long long
long long maxTweetID = [[[_dataArray lastObject]tweetID]longLongValue];