开发者

How to edit Selection indicator in UIPicker?

开发者 https://www.devze.com 2022-12-23 21:29 出处:网络
开发者_运维问答 Ad you can see, there is a example. The UI picker\'s Selection indicator. How can I do the similar thing on my Apps?This is not a feature of UIPickerView in the disclosed API. The scre
开发者_运维问答

How to edit Selection indicator in UIPicker?

Ad you can see, there is a example. The UI picker's Selection indicator. How can I do the similar thing on my Apps?


This is not a feature of UIPickerView in the disclosed API. The screenshot you show is either drawing the "hrs", "min", "sec" labels itself or is using an undisclosed API (possibly overriding the _UIPickerViewSelectionBar).

It would be pretty easy to draw labels like this yourself. Just get the UIPickerView and add the UILabels over the top of the UIPickerView after it has loaded.

0

精彩评论

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