Coder Social home page Coder Social logo

mlmoptionselectview's Introduction

MLMOptionSelectView

#弹出-选择-展示框 可设置弹出的方向,是否有箭头,是否可以编辑删除。

#效果图展示 image

#属性介绍 ###需要设置的属性

//设置返回的cell,用于自定义返回的下拉框中的cell样式
@property (nonatomic, copy) UITableViewCell*(^cell)(NSIndexPath *);
//返回的行数
@property (nonatomic, copy) NSInteger(^rowNumber)() ;
//设置返回的每一行的高度
@property (nonatomic, copy) float(^optionCellHeight)();
//点击的回调
@property (nonatomic, copy) ActionBack selectedOption;
//在设置可以编辑之后,可在其中自己写删除事件
@property (nonatomic, copy) ActionBack removeOption;

###调节样式的属性

//设置显示的最大行数
@property (nonatomic, assign) NSInteger maxLine;
//设置是否可以进行编辑
@property (nonatomic, assign) BOOL canEdit;
//设置是否含有箭头
@property (nonatomic, assign) MLMOptionSelectViewType optionType;
//设置展开时的动画样式,是缩放还是竖直水平展开,缩放 NO 竖直或水平展开 YES
@property (nonatomic, assign) BOOL vhShow;
//改变值,如果是缩放动画时,可以改变动画开始的点
@property (nonatomic, assign) CGFloat arrow_offset;//(0 - 1之间)

###弹出视图方法

 //viewPoint       弹出视图之后视图的origin,请根据你显示的方向,填写正确的点
 //width           视图的宽,在无法完全展示时会有所改变
 //target          如果你的弹出view需要在某个view的周围显示,不要犹豫就填它
 //directionType   展示的方向,在左右或者上下都能显示的情况下,优先选择的方向
 - (void)showViewFromPoint:(CGPoint)viewPoint
                 viewWidth:(CGFloat)width
                targetView:(UIView *)targetView
                 direction:(MLMOptionSelectViewDirection)directionType;

mlmoptionselectview's People

Contributors

mengliming avatar

Watchers

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