How to deleselect a row from UIPickerview

后端 未结 5 1386
死守一世寂寞
死守一世寂寞 2021-01-25 04:36

Hi I am using picker view, by default it is selecting the first row. I don\'t want this option. For example I am having \"No\" and \"yes\" options.If i give this op

5条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-25 05:05

    If you want to get this one by using UIPickerView then pass the first component of the picker view as a empty value,otherwise you can use custom pickerview.

    [pickerArray addObject:@""];//first element of the picker component.
    

    enter image description here

提交回复
热议问题