UIPickerView selection indicator not visible in iOS10

前端 未结 7 2049
刺人心
刺人心 2021-02-04 06:01

I build my project in Xcode 8. UIPickerView separator lines are not visible in iOS 10 simulator and the devices, but works fine on iOS 9.3 devices and simulator. I tried to adju

7条回答
  •  盖世英雄少女心
    2021-02-04 06:35

    I'm not sure what "separator lines" you are talking about. I don't see "separator lines" in iOS 9 either.

    The only "lines" missing from your screen shot are the selection indicator. You can get them by setting the picker view's showsSelectionIndicator to YES. But you shouldn't have to; showing the selection indicator is the default. The docs say:

    On iOS 7 and later ... the selection indicator is always shown

提交回复
热议问题