Custom UIPickerView with Custom Background color

后端 未结 6 580
野的像风
野的像风 2020-12-14 11:31

I have created a sample picker-view which will display some details. Setting the Background color using:

_pickerView.backgroundColor = [UIColor redColor]; 
<         


        
6条回答
  •  遥遥无期
    2020-12-14 12:25

    It is hard to customize a UIPickerView.

    You might opt to use it in its default appearance or trying to simulate a UIPickerView using another UIKit component such as UITableView. There are some libs that are using UITableView to simulate a more flexible UIPickerView.

提交回复
热议问题