ios开发,uisegmentedcontrol能不能改变字体大小
答案:1 悬赏:60 手机版
解决时间 2021-11-14 22:03
- 提问者网友:ミ烙印ゝ
- 2021-11-14 01:18
ios开发,uisegmentedcontrol能不能改变字体大小
最佳答案
- 五星知识达人网友:行雁书
- 2021-11-14 02:40
可以修改的
UIFont *font = [UIFont boldSystemFontOfSize:14.0f];
NSDictionary *attributes = [NSDictionary dictionaryWithObject:font
forKey:UITextAttributeFont];
[sortListSeg setTitleTextAttributes:attributes
forState:UIControlStateNormal];
UIColor *greenColor = [UIColor greenColor];
NSDictionary *colorAttr = [NSDictionary dictionaryWithObject:greenColor forKey:UITextAttributeTextColor];
[sortListSeg setTitleTextAttributes:colorAttr forState:UIControlStateNormal];
UIFont *font = [UIFont boldSystemFontOfSize:14.0f];
NSDictionary *attributes = [NSDictionary dictionaryWithObject:font
forKey:UITextAttributeFont];
[sortListSeg setTitleTextAttributes:attributes
forState:UIControlStateNormal];
UIColor *greenColor = [UIColor greenColor];
NSDictionary *colorAttr = [NSDictionary dictionaryWithObject:greenColor forKey:UITextAttributeTextColor];
[sortListSeg setTitleTextAttributes:colorAttr forState:UIControlStateNormal];
我要举报
如以上回答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
点此我要举报以上问答信息
大家都在看
推荐资讯