开发者

can the SelectionIndicator for a UIPickerView be customized?

开发者 https://www.devze.com 2023-03-28 03:47 出处:网络
I need to have a UIPickerView as UIDatePickerModeCountDownTimer but with more than 2 columns, like hours, minutes, seconds. So doing a UIPickerView like this is a no brainer, but 开发者_运维百科I\'d l

I need to have a UIPickerView as UIDatePickerModeCountDownTimer but with more than 2 columns, like hours, minutes, seconds. So doing a UIPickerView like this is a no brainer, but 开发者_运维百科I'd like to show the words 'hours', 'minutes', 'seconds' and so on, but on the selectionIndicator. Is there a way to customize this?

-Carlos


What I ended up doing was to add a UILabel with a clearColor as background and put it over the picker, at the exact position where the selectionIndicator shows.

0

精彩评论

暂无评论...
验证码 换一张
取 消