Giter VIP home page Giter VIP logo

dgdropdownbox's Introduction

DGDropDownBox

点击按钮,在按钮的上方或者下方显示菜单选择框

USE

1、#import "DGDropBoxView.h" 引入头文件并遵守协议dropViewBoxDataSource,dropViewBoxDelegate

2、_dropView = [DGDropBoxView dropViewWithLocationView:(UIButton *)sender dropDownViewType:DROPTEXT delegate:self]; [self.view addSubview:_dropView];

3、dataSource

  • (NSInteger) numberDropViewItems;//返回item个数

  • (CGSize) dropView:(UIView *)dropView itemindex:(NSInteger)index;//单个item的size

  • (NSString *) dropView:(UIView *)dropView itemTitleText:(NSInteger)index;//每个item的title

//一下方法可不执行

  • (DROP_DIRECTION) dropViewOrientation;//选项框方向

4、delegate

  • (void) dropViewDownBox: (UIView *)dropdown selectedItem:(NSInteger)index;//点击的回调

dgdropdownbox's People

Contributors

yandeguangzy avatar

Watchers

 avatar  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.