views:

294

answers:

1

Hi,

I currently have a UIPicker which I load in an image for each row using:

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

Unlike the normal behaviour using text in the UIPicker row, when using images I get a background selection colour over the image (blue) and was wondering if there was a way to change this colour or even cancel it (probably setting the colour to clearColor). I've tried using highlightedImage on the imageView i'm returning but this didn't work.

Thanks

A: 

Have you tried to turn off the selection bar by doing...

pickerView.showsSelectionIndicator = NO;
Tom
Yes, this does not change the colour of the selection however. I think it removes the part which shows which one is selected in the center.
ing0