开发者

How to change the textsize in a segment in UISegmentController in a XIB file

I am developing an iPad application where i want to reduce the textsize in a segment in a UISegm开发者_如何学运维entController.Please help. I also want to change the selected segment color. currently the default color we get when a segment is selected is blue. I want to change it to red. Please help me if anyone is aware of these solutions. I am trying to use a Xib file to make the segments.


Yes...You can change the color...By adding the below code to the style your preferred the default tintcolor of segment can be changed...

segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar;
segmentedControl.tintColor = [UIColor greenColor];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜