1

私はUISegmentedControl2つのボタンを持っています。コントロールの各ボタンに特定の色の境界線とタイトルを持たせたい。

可能であれば、どのようにアーカイブできますか?

4

1 に答える 1

-1

プロパティを使用できsegmentedControlStyleます。これにより、3 つの異なるスタイルが得られます
UISegmentedControlStylePlain, UISegmentedControlStyleBordered, UISegmentedControlStyleBar。他の外観が必要な場合は、カスタム コントロールを作成する必要があります。

ドキュメント: http://developer.apple.com/iphone/library/documentation/UIKit/Reference/UISegmentedControl_Class/Reference/UISegmentedControl.html#//apple_ref/occ/instp/UISegmentedControl/segmentedControlStyle

于 2010-05-11T11:04:50.023 に答える