WXScrollerSelector 0.1.3

WXScrollerSelector 0.1.3

weshell 维护。



WXScrollerSelector 简介

可滑动选择器小组件 0.1.2 版本 支持 自动适配底部导航条长度。

示例

// 默认创建 -- 不包含底部指示导航条
NSArray *tempArr = @[@"Math", @"Chinese", @"English", @"Biology", @"Physics", @"Chemistry", @"History", @"Geography", @"Politics"];

WXHeaderScrollView *headView = [[WXHeaderScrollView alloc] initWithTitleArr:tempArr frame:CGRectMake(0, 200, [UIScreen mainScreen].bounds.size.width, 60)];
headView.delegate = self;
headView.backgroundColor = [UIColor orangeColor];
[self.view addSubview:headView];


// 使用配置信息进行创建
WXHeaderScrollView *headView1 = [[WXHeaderScrollView alloc] initWithTitleArr:tempArr frame:CGRectMake(0, 200, [UIScreen mainScreen].bounds.size.width, 60)];
headView1.delegate = self;
headView1.backgroundColor = [UIColor orangeColor];
[self.view addSubview:headView1];
 // 创建配置类型
WXNewHomeViewHeaderConfig *config = [[WXNewHomeViewHeaderConfig alloc] init];
config.selecte_row = 6;
config.allow_scroll = YES;
config.lineview_is_display = YES;
config.lineview_color = [UIColor redColor];
config.button_background = [UIColor cyanColor];
config.button_corner_radius = 8;
[headView1 configStyle:config];

展示样式

000.png

001.png

安装方式

pod 'WXScrollerSelector'

作者

[email protected]

许可

WXScrollerSelector 在 MIT 许可下可用。有关更多信息,请参阅 LICENSE 文件。