Reputation: 26792
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
Upvotes: 3
Views: 4512
Reputation: 826
http://developer.apple.com/library/ios/#samplecode/UICatalog/Introduction/Intro.html
check this site which will guide ways to create custom picker... its possible to make change in color using custom creation
Upvotes: 0
Reputation: 174
Have you tried to turn off the selection bar by doing...
pickerView.showsSelectionIndicator = NO;
Upvotes: 7