Coder Social home page Coder Social logo

qwalerview's Introduction

QWAlertView

当前版本 0.3.0

pod 'QWAlertView'

效果图

代码

[[QWAlertView sharedMask] show:自定义视图 withType:(QWAlertViewStyle)(弹出方向)];
///弹出动画完成后的 回调
@property (nonatomic, copy) showBlock showBlock;
///关闭回调
@property (nonatomic, copy) dismissBlock dismissBlock;
///触摸任意位置关闭弹窗 默认NO
@property (nonatomic, assign) BOOL touchOff;
///当前是否正在展示弹窗
@property (nonatomic, assign,readonly) BOOL isShow;

/**  创建弹出试图 */
+ (QWAlertView *)sharedMask;
/**
* show:withType:     弹出视图
* @param contentView 需要弹出的视图
* @param style       弹出模式
*/
- (void)show:(UIView *)contentView withType:(QWAlertViewStyle)style;
/**
*  show:withType:animationFinish:dismissHandle: 弹出视图
*  @param contentView 需要弹出的视图
*  @param style       弹出模式
*  @param show        弹出回调
*  @param dismiss     消失回调
*
*/
- (void)show:(UIView *)contentView withType:(QWAlertViewStyle)style animationFinish:(showBlock)show dismissHandle:(dismissBlock)dismiss;
/**  移除弹出视图 */
- (void)dismiss;

License

QWAlertView is available under the MIT license. See the LICENSE file for more info.

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.