Change font size of UISegmentedControl

前端 未结 16 1798
死守一世寂寞
死守一世寂寞 2020-11-28 20:54

Can anyone please tell me how can I change the font type and size of UISegmentedControl?

16条回答
  •  执念已碎
    2020-11-28 21:11

    Another option is to apply a transform to the control. However, it will scale down everything including the control borders.

    segmentedControl.transform = CGAffineTransformMakeScale(.6f, .6f);
    

提交回复
热议问题