Giter Site home page Giter Site logo

qkbannersview's Introduction

QKBannersView

通知弹窗,仿系统Banners模式

使用方式: 将QKBannersView.h和QKBannersView.m添加到要使用的工程中,在需要使用的地方添加QKBannersView.h头文件。 Demo中有使用示例:

[[QKBannersView sharedInstance] showMessage:@"标题" showTitle:@"Logo" animaDelay:0.3 icon:[UIImage imageNamed:@"icon"] clickEvent:^(id sender) {
        //[weakSelft btnTitleClick:sender];
    } configuration:^{
        [QKBannersView sharedInstance].showTime = 5;
    }];

第一个block是点击事件的回调,可以这个block中完成点击所需要处理的事件;第二个block是对该视图做的一些配置,支持的配置有:

@property (nonatomic, assign)UIWindowLevel          windowLevel;            //视图显示级别
@property (nonatomic, assign)CGFloat                windowHeight;           //视图高度
@property (nonatomic, assign)NSInteger              showTime;               //视图显示时长
@property (nonatomic, copy)UIColor                  *upBackgroundColor;     //上背景
@property (nonatomic, copy)UIColor                  *downBackgroundColor;   //下背景
@property (nonatomic, assign)CGFloat                upFontSize;             //上文字大小
@property (nonatomic, assign)CGFloat                downFontSize;           //下文字大小
@property (nonatomic, copy)UIColor                  *upTextColor;           //上文字颜色
@property (nonatomic, copy)UIColor                  *downTextColor;         //下文字颜色

image image

qkbannersview's People

Contributors

sjjvenu avatar

Watchers

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