UIPickerView 中的半透明所选项目
我希望向 UIPicker 添加半透明的灰色/蓝色选择栏。目前它没有显示:
http://screencast.com/t/XvSqotIPXYJD
这是该方式的屏幕截图它应该看起来:
http://www .screencast.com/users/jeffbubblet/folders/Jing/media/83a7c3d4-3f29-4e03-beb6-cf1118c9d91d
现在我正在使用委托方法 pickerView:titleForRow:forComponent。如果可以避免的话,我不想不必要地使用 pickerView:viewForRow:forComponent:reusingView: 。
我似乎在文档中找不到任何有关它的内容,而且我不想对其进行一点自定义 - 只是想要默认行为。
I'm looking to add to a UIPicker the translucent grey / blue selection bar. Currently it's not showing up:
http://screencast.com/t/XvSqotIPXYJD
Here's a screenshot of the way it should look:
http://www.screencast.com/users/jeffbubblet/folders/Jing/media/83a7c3d4-3f29-4e03-beb6-cf1118c9d91d
Right now I'm using the delegate method pickerView:titleForRow:forComponent. I'd prefer not to have to use pickerView:viewForRow:forComponent:reusingView: unnecessarily if it can be avoided.
I can't seem to find anything in the docs about it, and I'm not looking to customize it one bit - just want the default behavior.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你需要设置
你的pickerview
u would need to set the
of your pickerview