Last time I had to split a string (after every 2 characters) in xcode. substringWithRange does the trick!
{code type=xml}
// Color code: #e213ff
NSString *col = @”e213ff”;
NSString *col1 = [col substringWithRange:NSMakeRange(0, 2)];
NSString *col2 = [col substringWithRange:NSMakeRange(2, 2)];
NSString *col3 = [col substringWithRange:NSMakeRange(4, 2)];
{/code}