美文网首页
类似京东淘宝排序筛选

类似京东淘宝排序筛选

作者: 西门丨不吹雪 | 来源:发表于2017-02-05 11:15 被阅读120次

效果图如下:

yyy.png

调用方法很简单:
- (void)viewDidLoad {
[super viewDidLoad];

NSArray *titlesArr = @[@[@"综合排序",@"新品优先",@"评论数从高到低"],
                       @[@"品牌",@"国内品牌",@"国际品牌"],
                       @[@"颜色",@"黑色",@"黄色",@"白色",@"蓝色"]];

XMDropDownChooseView *chooseView = [[XMDropDownChooseView alloc]initWithFrame:CGRectMake(0, 64, self.view.bounds.size.width, 40) dataArr:titlesArr delegate:self];
chooseView.titleColor = [UIColor redColor];
[self.view addSubview:chooseView];
}


-(void)choosedAtSection:(NSInteger)section index:(NSInteger)index
{
NSLog(@"section:%lu------index:%lu",section,index);
}

Demo下载地址

相关文章

网友评论

      本文标题:类似京东淘宝排序筛选

      本文链接:https://www.haomeiwen.com/subject/nfteittx.html