一、设置 segementControl 的title字体大小 和颜色
NSDictionary * dicN = [NSDictionary dictionaryWithObjects:@[[UIFont systemFontOfSize:17],[UIColor whiteColor]] forKeys:@[NSFontAttributeName,NSForegroundColorAttributeName]];
[self.segementControl setTitleTextAttributes:dicN forState:UIControlStateNormal];
二、segementControl 的选中和非选中状态背景色在storyboard中设置
backgroudCorlor 非选中状态颜色
tint 选中状态颜色
本文介绍了如何使用NSDictionary来设置segementControl的title字体大小及颜色,并演示了如何在storyboard中配置segementControl的背景色及选中状态的颜色。
537

被折叠的 条评论
为什么被折叠?



