how to write text on selection indicator of uipickerview
Asked
Active
Viewed 2,644 times
2 Answers
4
The simplest approach will be just to add UILabel
with your text over the UIPickerView
. You only need to find the right coordinates so text will be placed well.

Vladimir
- 170,431
- 36
- 387
- 313
-
that must be pretty straightforward, really - simply add UILabel with transparent background above picker, fill you picker with data and then play with label coordinates to find label's best position. – Vladimir Mar 03 '11 at 10:37
3
If you want to display text on it try adding a UILabel as a subview to the view containing the picker. You just need to get the frame in the right spot - easy with IB, more trial and error through code. The set label to have a clear background. Just update the label value as needed.

visakh7
- 26,380
- 8
- 55
- 69