0
点赞
收藏
分享

微信扫一扫

改变UISegmentedControl样式,改变字体

北冥有一鲲 2022-08-07 阅读 55


NSDictionary *textDic = [NSDictionary dictionaryWithObjectsAndKeys:
[[UIColor blackColor] colorWithAlphaComponent:0.6f],UITextAttributeTextColor,
[UIColor grayColor],UITextAttributeTextShadowColor,
[NSValue valueWithUIOffset:UIOffsetMake(1, 0)],UITextAttributeTextShadowOffset,
[UIFont systemFontOfSize:13],UITextAttributeFont,nil];

[mySegment setTitleTextAttributes:textDic forState:UIControlStateNormal];

 

举报

相关推荐

0 条评论