for example i want to covert this to long
NSString *str = @"FFFF00FF";
thanks!
for example i want to covert this to long
NSString *str = @"FFFF00FF";
thanks!
Try to use this one
NSString *str = @"FFFF00FF";
NSScanner* scanner = [NSScanner scannerWithString: str];
unsigned long long longValue;
[scanner scanHexLongLong: &longValue];
NSLog(@"LongValue = %lld", longValue);
i hope it may help you.
NSString *str = @"FFFF00FF";
long longstring=[str longLongValue];
NSLog(@"%ld",longstring);
try this one.mightbe help ful to you.