简体   繁体   中英

how to write text on selection indicator of uipickerview

如何在uipickerview的选择指示器上写文本

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM