Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个UISegmentedControl带两个按钮的。我希望每个控件按钮都具有特定颜色的边框和标题。
UISegmentedControl
是可能的,如果是的话如何存档?
你可以使用segmentedControlStyle属性。这为您提供了 3 种不同的风格 UISegmentedControlStylePlain, UISegmentedControlStyleBordered, UISegmentedControlStyleBar。如果您想要任何其他外观,则需要制作自定义控件。
segmentedControlStyle
UISegmentedControlStylePlain, UISegmentedControlStyleBordered, UISegmentedControlStyleBar
文档:http: //developer.apple.com/iphone/library/documentation/UIKit/Reference/UISegmentedControl_Class/Reference/UISegmentedControl.html#//apple_ref/occ/instp/UISegmentedControl/segmentedControlStyle