首页 | 新闻 | 新品 | 文库 | 方案 | 视频 | 下载 | 商城 | 开发板 | 数据中心 | 座谈新版 | 培训 | 工具 | 博客 | 论坛 | 百科 | GEC | 活动 | 主题月 | 电子展
返回列表 回复 发帖

HMSegmentedControl源代码解析(3)

HMSegmentedControl源代码解析(3)

@property (nonatomic, strong) UIColor *selectionIndicatorBoxColor UI_APPEARANCE_SELECTOR;

/**
Color for the vertical divider between segments.

Default is `[UIColor blackColor]`
*/

/**
segment间的分割线的颜色
*/
@property (nonatomic, strong) UIColor *verticalDividerColor UI_APPEARANCE_SELECTOR;

/**
Opacity for the seletion indicator box.

Default is `0.2f`
*/
/**
不透明的盒子对比指标
*/
@property (nonatomic) CGFloat selectionIndicatorBoxOpacity;

/**
Width the vertical divider between segments that is added when `verticalDividerEnabled` is set to YES.

Default is `1.0f`
*/

/**
分割线高度
*/
@property (nonatomic, assign) CGFloat verticalDividerWidth;

/**
Specifies the style of the control

Default is `HMSegmentedControlTypeText`
*/
@property (nonatomic, assign) HMSegmentedControlType type;

/**
Specifies the style of the selection indicator.

Default is `HMSegmentedControlSelectionStyleTextWidthStripe`
*/
@property (nonatomic, assign) HMSegmentedControlSelectionStyle selectionStyle;

/**
Specifies the style of the segment's width.

Default is `HMSegmentedControlSegmentWidthStyleFixed`
*/
@property (nonatomic, assign) HMSegmentedControlSegmentWidthStyle segmentWidthStyle;

/**
Specifies the location of the selection indicator.

Default is `HMSegmentedControlSelectionIndicatorLocationUp`
*/
@property (nonatomic, assign) HMSegmentedControlSelectionIndicatorLocation selectionIndicatorLocation;

/*
Specifies the border type.

Default is `HMSegmentedControlBorderTypeNone`
*/
@property (nonatomic, assign) HMSegmentedControlBorderType borderType;

/**
Specifies the border color.

Default is `[UIColor blackColor]`
*/
@property (nonatomic, strong) UIColor *borderColor;

/**
Specifies the border width.

Default is `1.0f`
*/

/**
边框颜色
*/
@property (nonatomic, assign) CGFloat borderWidth;

/**
Default is YES. Set to NO to deny scrolling by dragging the scrollView by the user.
*/

/**
是否可以拖拽
*/
@property(nonatomic, getter = isUserDraggable) BOOL userDraggable;

/**
Default is YES. Set to NO to deny any touch events by the user.
*/

/**
是否可以点击
*/
@property(nonatomic, getter = isTouchEnabled) BOOL touchEnabled;

/**
Default is NO. Set to YES to show a vertical divider between the segments.
*/
返回列表