Objective-CでNSStringからHEX(c)への変換方法

参考ソースコード
#define HEXCOLOR(c)
[UIColor colorWithRed:((c>>16)&0xFF)/255.0 green:((c>>8)&0xFF)/255.0 blue:(c&0xFF)/255.0 alpha:1.0];
baseView.backgroundColor = HEXCOLOR(strtoul([@"0xf74545″ UTF8String],0,16));

IOS

Posted by arkgame