Backlight color

I currently have a UIPicker which I load into the image for each row using:

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

Unlike the usual behavior using the text in the UIPicker line, when using images I get the background highlight color above the image (blue) and wondered if there is a way to change this color or even cancel it (perhaps by setting a color to clear the color). I tried using highlightImage in ImageView, I am returning, but this did not work.

thank

+3
source share
2 answers

You tried to turn off the selection bar by doing ...

pickerView.showsSelectionIndicator = NO;
+7
source

Source: https://habr.com/ru/post/1749558/


All Articles