UISegmentedControl in iOS 7 divider image is wrong during animation

前端 未结 6 856
清歌不尽
清歌不尽 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:18

    To add a little more detail to Wyatt's answer, what is happening is that the "divider" image and the new "selected" image are changed instantly on touchUp, but the previously-selected segment's transition from the "selected" image to the "unselected" image is performed via an animated crossfade.

    If you have a wide "divider" image with high contrast between the "divider" image and the "selected" image, this leads to an annoying flash.

提交回复
热议问题