htmlでよくある CCCCCCやFF0000FFといった文字列からUIColorを作ることもあると思います。
これは2Stepでやります
1) それぞれの色ごとの文字を切り出す。つまり CCAABBを CC と AA と BBにする。
2) 切り出した文字をNSScannerでscanHexIntでHexからIntにする
この2つです。
Alphaがある8文字の時とそれがない6文字の時があると思います。あとは#が最初についたりとか。
#は対応してないですが、6文字と8文字に対応した関数を置いておきます

+ (UIColor *)colorFromHexString:(NSString *)text

{

unsigned int colors[4] = {0,0,0,255};

if([text length]==6){

for (unsigned int i=0; i<3; i++) {

[[NSScanner scannerWithString:[text substringWithRange:NSMakeRange(2*i, 2)]] scanHexInt:&colors[i]];

}

}else if([text length]==8){

for (unsigned int i=0; i<4; i++) {

[[NSScanner scannerWithString:[text substringWithRange:NSMakeRange(2*i, 2)]] scanHexInt:&colors[i]];

}

}else{

return nil;

}

return [UIColor colorWithRed:(CGFloat)colors[0]/255.0

  green:(CGFloat)colors[1]/255.0

blue:(CGFloat)colors[2]/255.0

  alpha:(CGFloat)colors[3]/255.0];

}









you can use pictures and texts on this site as you like.