UIPickerView Column Headers

I am looking for a way to add a header for each UIPickerView column (component). In all the examples that I saw, there are no names, because in general the meaning of the columns could be determined based on its order, content and context ... however, in my application it would be dangerous to confuse the columns, so I need to give their names.

Regards, Craig

+5
source share
1 answer

The way I would do this would be to create a parent UIView that contains your UIPickerView and add a series of UILabels for the column headers. That way, you are not doing anything magical for UIPickerView, you are just displaying labels on it in a way that looks like they are part of the same widget.

+2
source

All Articles