改变UISegmentedControl样式,改变字体

阅读 55

2022-08-07


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)

0 0 举报