更改UIPickerView背景 [英] Change UIPickerView background

查看:92
本文介绍了更改UIPickerView背景的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改UIPickerView的边框颜色。我没有看到UIPickerView的色调属性。有什么办法可以做到吗?或者解决方法?

I want to change the border color of a UIPickerView. I do not see a tint property for the UIPickerView. Is there any way this could be done? Or a workaround?

谢谢。

推荐答案

如果你只是想要解决方法,在模拟器中拍摄屏幕截图,在photoshop中打开它,将其裁剪到UIPickerView区域,使中心透明,应用您想要的任何色调,将该图像添加到项目中,并将其添加为顶部的UIImageView UIPickerView。

If you just want a workaround, take a screen shot in the simulator, open it in photoshop, crop it to just the UIPickerView area, make the center transparent, apply whatever tint you want, add that image to your project, and add it as a UIImageView on top of the UIPickerView.

这篇关于更改UIPickerView背景的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆