且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从UIPickerview取消选择行

更新时间:2023-12-04 12:22:22

如果要使用UIPickerView来获取此代码,则将选择器视图的第一个component作为空值传递,否则可以使用custom pickerview.

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.