您的位置:首页 > 其它

segementControl相关

2016-03-31 11:56 134 查看
一、设置   segementControl 的title字体大小 和颜色

NSDictionary * dicN = [NSDictionary dictionaryWithObjects:@[[UIFont systemFontOfSize:17],[UIColor whiteColor]] forKeys:@[NSFontAttributeName,NSForegroundColorAttributeName]];

    [self.segementControl setTitleTextAttributes:dicN forState:UIControlStateNormal];

二、segementControl 的选中和非选中状态背景色在storyboard中设置

backgroudCorlor 非选中状态颜色

tint  选中状态颜色
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  segementControl