0

Hey! I have a UIPicker, and I am using the function:

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

But, when you tap one of the views returned by this function, the tapped view does not become highlighed, and selected if the touch is released. How can I fix that?

Hank Brekke
  • 2,024
  • 2
  • 24
  • 33

1 Answers1

1

Make use of this property,

pickerView.showsSelectionIndicator = YES;

at initialization.

Madan Mohan
  • 8,764
  • 17
  • 62
  • 96