NSMutableAttributedString *atrriButedStr = [[[NSMutableAttributedString alloc] initWithString:titileName] autorelease];
[atrriButedStr addAttribute:NSForegroundColorAttributeName value:(id)[Unity getMiddleColor].CGColor range:range];
(id)[Unity getMiddleColor].CGColor 改为:[Unity getMiddleColor]; iOS7使用没问题。