自定义UISegmentedControl,如UISearchBar中的Scope控件 [英] Custom UISegmentedControl like the Scope control in UISearchBar
本文介绍了自定义UISegmentedControl,如UISearchBar中的Scope控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我喜欢创建一个看起来像UISearchBar中的范围按钮的UISegmentedControl。
I like to create a UISegmentedControl that looks like the scope button in UISearchBar.
你知道怎么做吗?
更新:
所以我想要像这样创建一个UISegmentedControl
(请注意外观),这与UISearchBar无关,
我只想让它看起来像UISearchBar中的范围按钮。
Update:
So I want to create a UISegmentedControl like this
(please notice the appearance), this is not related with UISearchBar,
I just want to make it LOOKS LIKE the scope buttons in UISearchBar.
推荐答案
试试这个:
mySegmentedBar.segmentedControlStyle = 7;
它没有记录,但似乎通过App Store审核。
It's undocumented, but seems to pass App Store review.
这篇关于自定义UISegmentedControl,如UISearchBar中的Scope控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文