Configure UIPickerview

I would like to do some customization of the UIPickerView.

The ultimate goal: to have an idea of ​​choice by rotating multiple icon-size images.

Firstly, I would like to change the black / gray border around the spindle to a transparent color. that is, [UIColor clearColor];

Then reduce the pick-up down so that it is relatively small (maybe about 40 x 40 pixels). Experimenting with this is not a relief. IB /

Finally, change the view returned to the collector for each section. It is, I think, easy with

pickerView:viewForRow:forComponent:reusingView: 

The rest is not sure if this is possible, or if I have to delve into some of the main animations / graphics (or find another way to do what I want).

+4
source share
2 answers

UIPickerView is not configurable. For everyone.

You will need to follow the custom for what you need.

Perhaps the easiest way would be to merge with UIScrollView with vertical paging enabled and try to make it act the way you want. Perhaps overlapping the UIImageView with it and ending all of this in the user view.

+3
source

You can also “customize” the outer frame of the collector by simply placing the UIImageView on top with a hole cut out for the working parts. Apple does this using the Clock app.

+1
source

All Articles