Board logo

标题: HMSegmentedControl源代码解析(3) [打印本页]

作者: look_w    时间: 2019-2-19 17:34     标题: 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.
*/




欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) Powered by Discuz! 7.0.0