UIPickerView button selector issue in iOS 7

China☆狼群 提交于 2019-12-04 15:26:31

You will need to use

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component

instead in iOS 7 and do your needed work in it.

You can't use button on picker view cell. I have used toolbar and added a bar button item on it. By this

- (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component

you will get the row number and use that to perform desired functionality.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!