Override selection in UIPickerView

I have a custom UIPickerView where I use:

 -(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view 

to populate the UIView collector, which has two labels. Is there a way to enable the behavior of highlighting the selected row on tap?

+4
source share
1 answer

Just adding this when initializing your choice.

  pickerView.showsSelectionIndicator = YES; 
0
source

All Articles