Remove UISegmentedControl separators completely. (iphone)

前端 未结 9 1753
Happy的楠姐
Happy的楠姐 2020-12-05 05:30

Is there a way to completely remove the line separating the two segments in a UISegmentedControl?

Setting the segmentedControlStyle is not helping.

9条回答
  •  Happy的楠姐
    2020-12-05 05:40

    Use this method to change your segment divider image:

    [segmentControl setDividerImage:dividerimg
                forLeftSegmentState:UIControlStateNormal
                  rightSegmentState:UIControlStateNormal
                         barMetrics:UIBarMetricsDefault];
    

提交回复
热议问题