UISegmentedControl in iOS 7 divider image is wrong during animation

前端 未结 6 818
清歌不尽
清歌不尽 2020-12-25 15:05

I have a custom UISegmentedControl. In iOS 6 and bellow it works fine. Under iOS 7.. it looks fine until I press the control, at which time, the divider image looks weird fo

6条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-25 15:24

    Try setting the tintcolor property of segment control. I had this issue. I set the tint colour to selection colour and no images were set for divider. Since this is IOS 7 you can do so for IOS 7 and keep divider image code for IOS 6. To make things clear I am talking tintcolor instance level property of UISegmentControl.

提交回复
热议问题