Giter Club home page Giter Club logo

zfdropdown's Introduction

ZFDropDown

A drop down for iOS. Designed by Kevin Hirsch. Written in OC by Zirkfied. It can also create your own custom style.

原作者Kevin Hirsch用Swift写的一个简单大气的下拉列表框,本人根据原样式写了一个OC版本,支持自定义样式。喜欢的欢迎star一个,有任何建议或问题可以加QQ群交流:451169423

用法:

    第一步(step 1)
    将项目里ZFDropDown整个文件夹拖进新项目
    
    第二步(step 2)
    #import "ZFDropDown.h"
    
    第三步(step 3)
    须遵循ZFDropDownDelegate代理协议
    
    ZFDropDown * dropDown = [[ZFDropDown alloc] initWithFrame:CGRectMake(50, 100, 300, 40) pattern:kDropDownPatternDefault];
    dropDown.delegate = self;
    [dropDown.topicButton setTitle:@"Please choose 1 continent / area" forState:UIControlStateNormal];
    [self.view addSubview:dropDown];

@required 必须实现的方法

    - (NSArray *)itemArrayInDropDown:(ZFDropDown *)dropDown{
         return @[@"Chinese", @"Math", @"English", @"Politics", @"Physics", @"Chemistry", @"Geography", @"History", @"Biology", @"Philosophy"];
    }

其余说明

    1.若是通过网络加载数据,在拿到数据后调用[dropDown reloadData]进行刷新列表
    2.自定义样式请看Demo示例中的CustomViewController.m
    3.其余方法和属性请查看ZFDropDown.h

         

更新日志

    2017.01.15 初版发布
    
    2017.03.27 ①修复网络加载无法刷新数据问题
               ②新增shadowOpacity(阴影透明度)属性

       

本人其他开源框架

zfdropdown's People

Contributors

zirkfied avatar

Watchers

James Cloos avatar samulle 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.