Code Monkey home page Code Monkey logo

gfconditionfilterviewdemo's Introduction

ConditionFilterViewDemo

如果觉得下面的很乱 懒得看 直接看ViewController.m使用实例也行

TableView条件筛选,类淘宝“销量最高”,“综合排序”

  • 目前只支持三个筛选框,还没有通用框架,如果只要两个,可以直接不加第三个,调整frame即可,如果是四个的话只能自己手动再加

相似存储数组参数解释:

GFConditionFilterView.h

/** 外部传入对应三个下拉tableView的DataSource*/

@property (nonatomic,strong) NSArray *dataAry1;

@property (nonatomic,strong) NSArray *dataAry2;

@property (nonatomic,strong) NSArray *dataAry3;

// 暂时为无用变量,用于内部设置默认数据 [1] [2] [3] 现在情况比较简单,外部赋初值

@property (nonatomic,strong) NSArray *sortTitleAry;

GFConditionFilterView.m

// 存储 tableView didSelected数据 数据来源:FilterDataTableView

NSArray *_dataSource1;

NSArray *_dataSource2;

NSArray *_dataSource3;

ViewController.m

// 存储 网络请求url中的筛选项 数据来源:View中_dataSource1或者一开始手动的初值

NSArray *_selectedDataSource1Ary;

NSArray *_selectedDataSource2Ary;

NSArray *_selectedDataSource3Ary;

gfconditionfilterviewdemo's People

Contributors

mrwang90hou avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.