由于系统会自动渲染,所以要使字体颜色达到自己想要的效果,可以有下面这种方法
NSMutableDictionary *textattri=[NSMutableDictionary dictionary];
textattri[NSForegroundColorAttributeName]=SLColor(123, 123, 123);
NSMutableDictionary *selecttextattri=[NSMutableDictionary dictionary];
selecttextattri[NSForegroundColorAttributeName]=[UIColor orangeColor];
UIBarButtonItem *item=[UIBarButtonItem appearance];
NSMutableDictionary *textattri=[NSMutableDictionary dictionary];
textattri[NSForegroundColorAttributeName]=SLColor(123, 123, 123);
NSMutableDictionary *selecttextattri=[NSMutableDictionary dictionary];
selecttextattri[NSForegroundColorAttributeName]=[UIColor orangeColor];