UISegmentedControl简介
UISegmentedControl继承于UIControl,并遵循NSCoding协议。而UIControl继承于UIView,这里并不详细介绍了。
UISegmentedControl有如下style
typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {
UISegmentedControlStylePlain, // large plain
UISegmentedControlStyleBordered, // large bordered
UISegmentedControlStyleBar, // small button/nav bar style. tintable
UISegmentedControlStyleBezeled, // DEPRECATED. Do not use this style.
} NS_DEPRECATED_IOS(2_0, 7_0, "The segmentedControlStyle property no longer has any effect") __TVOS_PROHIBITED;
UISegmentedControl都有哪些方法和属性请参照苹果UISegmentedControl.h
UISegmentedControl继承于UIControl,并遵循NSCoding协议。而UIControl继承于UIView,这里并不详细介绍了。
UISegmentedControl有如下style
typedef NS_ENUM(NSInteger, UISegmentedControlStyle) {
UISegmentedControlStylePlain, // large plain
UISegmentedControlStyleBordered, // large bordered
UISegmentedControlStyleBar, // small button/nav bar style. tintable
UISegmentedControlStyleBezeled, // DEPRECATED. Do not use this style.
} NS_DEPRECATED_IOS(2_0, 7_0, "The segmentedControlStyle property no longer has any effect") __TVOS_PROHIBITED;
UISegmentedControl都有哪些方法和属性请参照苹果UISegmentedControl.h