UIPickerView行图像选择高亮颜色
我目前有一个 UIPicker,我使用它在每行的图像中加载:
- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view
与在 UIPicker 行中使用文本的正常行为不同,使用图像时,我在图像上获得背景选择颜色(蓝色),并且想知道是否有办法更改此颜色甚至取消它(可能将颜色设置为clearColor)。我尝试在我返回的 imageView 上使用突出显示的图像,但这不起作用。
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否尝试过通过执行以下操作来关闭选择栏...
Have you tried to turn off the selection bar by doing...
http://developer.apple.com/library/ios/ #samplecode/UICatalog/Introduction/Intro.html
检查此网站,它将指导创建自定义选择器的方法...
可以使用自定义创建来更改颜色
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