UIPickerview customisation

后端 未结 2 488
有刺的猬
有刺的猬 2020-12-18 09:40

I would like to do some customization of the UIPickerView.

End Goal: have a picker view rotating a few icon sized images.

firstly i would like to change the

相关标签:
2条回答
  • 2020-12-18 09:50

    You can also "customize" the outer bezel of the picker by simply placing a UIImageView over the top with a hole cut out for the working parts. Apple does this with the Clock app.

    0 讨论(0)
  • 2020-12-18 10:10

    UIPickerView is not customizable. At all.

    You'll have to go custom for what you want.

    Perhaps the easiest way would be to mess with an UIScrollView with vertical pagination enabled, and try to get it to act like you want. Maybe overlap an UIImageView with it and wrap the whole thing up in a custom view.

    0 讨论(0)
提交回复
热议问题