自定义 UISearchDisplayController
替代文本 http://img210.imageshack.us/img210/5992/searchdisplaycontroller.png
以下是对象可定制?
1. UISearchBar 范围按钮 (UISegmentedController)
2. UIResultsTableView
3.键盘(至少是黑色的)
alt text http://img210.imageshack.us/img210/5992/searchdisplaycontroller.png
Are the following objects customizable?
1. UISearchBar Scope Buttons (UISegmentedController)
2. UIResultsTableView
3. Keyboard (at least so it's colored black)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
替代文本 http://img527.imageshack.us/img527/9775/searchdisplaycontrollerz.png< /a>
我能够通过某种黑客代码更改分段控件:
但是按钮很大,我该如何修复它,使它们与原始按钮一样漂亮?
alt text http://img527.imageshack.us/img527/9775/searchdisplaycontrollerz.png
I was able to change the segmented control by a sort-of hack code:
However the buttons are HUGE, how could I fix it so they are just as pretty as the original?
尽管尝试了每一种segmentedControlStyle,我也始终无法让按钮变得更小。这是我至少需要使用的代码才能在 IOS4 上获得正确的色调颜色:
I was also never able to get the buttons to be smaller despite trying every segmentedControlStyle. Here's the code I needed to use to at least get the tint color correct on IOS4:
我可以使用以下代码自定义表格视图:
但是,当您触摸取消按钮时,界面将闪烁白色,然后返回原始表格视图。如何解决这个问题?
I was able to customize the tableview by using the following code:
However when you touch the cancel button, the interface will flash white before going back to the original tableview. How can this be fixed?