Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

convert long long into string

Tags:

ios

iphone

What is long long type ? It's an integer which takes 8 bytes , am I right? I want to convert long long type into NSString as follows.

long long fbid = [[friend objectForKey:@"id"]longLongValue];

I want value of fbid in my NSString *str variable. What can I do?

like image 418
QueueOverFlow Avatar asked Jun 29 '12 13:06

QueueOverFlow


1 Answers

NSString *str = [NSString stringWithFormat:@"%lld", fbid];
like image 146
user523234 Avatar answered Sep 30 '22 19:09

user523234