Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
たとえば、これを long に変換したい
NSString *str = @"FFFF00FF";
ありがとう!
こいつを使ってみる
NSString *str = @"FFFF00FF"; NSScanner* scanner = [NSScanner scannerWithString: str]; unsigned long long longValue; [scanner scanHexLongLong: &longValue]; NSLog(@"LongValue = %lld", longValue);
お役に立てば幸いです。