Giter Site home page Giter Site logo

wlalert's Introduction

WLAlertView

自定制弹出警告框,多种动画弹出样式

如果不想用系统的alert,自定制自己喜欢的alert,但又想有自然的动画效果,WLAlertView是个不错的选择; 1.把WLAlert文件拖进你的工程 2.继承于UIView,自定制alert的UI 3.在要显示的VC里,创建你的alert,并设置相关属性就可以达到你所需的效果

例如: WLFirstExampleAlert * alert = [WLFirstExampleAlert showAlertWithTitle:@"操作" otherTitles:@[@"复制",@"粘贴",@"转发"] completion:^(NSInteger buttonIndex) { if (buttonIndex==1) { // } }]; //自定制的alert WLAlertView * alertView = [[WLAlertView alloc]init]; alertView.containerView = alert; alertView.transitionStyle=WLAlertViewTransitionStyleFade;//设置alert的出现动画 [alertView show];

详细见demo里四种不同定制的alert的例子

wlalert's People

Stargazers

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