Customizing UIPickerView (background and spacing)

前端 未结 4 1526
無奈伤痛
無奈伤痛 2020-12-31 22:07

I would like to change the white background in a UIPickerView to an image of my own.

Is this possible?

Also, I have managed to get my UIPickerView to scroll

4条回答
  •  伪装坚强ぢ
    2020-12-31 22:52

    How about adding an empty view on the right of your labels? And for the background you should probably use insertSubview:aboveView: method with the default background view as the second parameter (if you can access to it).

提交回复
热议问题