Latest 0.0.1
Homepage https://github.com/boilWater/SLBottomToastView
License MIT
Platforms ios 7.0
Authors

模仿IOS原生底部弹出框,进行相关信息展示

SLBottomToastView使用说明

功能说明:模仿IOS原生底部弹出框,进行相关信息展示

cocoapods导入文件


   SLBottomToastView (0.0.1)
   show messgae
   pod 'SLBottomToastView', '~> 0.0.1'
   - Homepage: https://github.com/boilWater/SLBottomToastView
   - Source:   https://github.com/boilWater/SLBottomToastView.git

使用实例:


//头文件引入
#import "SLBottomToastView.h"
#import "FactoryLeftCell.h"

实现相关协议SLBottomMessageBoxDataSource, SLBottomMessageBoxDelegate

在监听和相应事件中初始化 SLBottomToastView

SLBottomToastView *bottomToastView = [[SLBottomToastView alloc] init];
bottomToastView.dataSource = self;
bottomToastView.delegate = self;
[self.view addSubview:bottomToastView];

实现协议并在协议使用FactoryLeftCell初始化Cell

- (NSInteger)numberOfRowsInBottomToastView:(SLBottomToastView *)bottomToastView{
    return 4;
}

- (SLBottomToastViewCell *)bottomToastView:(SLBottomToastView *)bottomToastView cellForRowAtIndex:(NSInteger)index{
    SLBottomToastViewLeftCell *cell = (SLBottomToastViewLeftCell *)[FactoryLeftCell CreateBottomToastViewCell];
    cell.backgroundColor = [UIColor blueColor];
    cell.statusLabel.text = @"hello world!";
    cell.imageView.image = [UIImage imageNamed:@"education.png"];
    return cell;
}

API接口说明


/**
 *  设置buttom的动画
 *
 *  @param slBottomMessageBoxAnimationStyle animationStyle类型
 */
+ (void)setAnimationStyle:(SLBottomMessageBoxAnimationStyle) slBottomMessageBoxAnimationStyle;

Latest podspec

{
    "name": "SLBottomToastView",
    "version": "0.0.1",
    "summary": "show messgae",
    "description": "u6a21u4effIOSu539fu751fu5e95u90e8u5f39u51fau6846uff0cu8fdbu884cu76f8u5173u4fe1u606fu5c55u793a",
    "homepage": "https://github.com/boilWater/SLBottomToastView",
    "license": "MIT",
    "authors": {
        "liangbai": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/boilWater/SLBottomToastView.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "SLBottomToastView",
        "SLBottomToastView/**/*.{h,m}"
    ]
}

Pin It on Pinterest

Share This