Latest 0.1.0
Homepage https://github.com/zczczyc/ZCSlimeRefresh
License MIT
Platforms ios 8.0
Dependencies Masonry
Authors

效果图

以下简单集成步骤:

pod 'ZCSlimeRefresh', '~> 0.1.0'

<ZCRefreshDelegate>

#import "ZCRefreshView.h"

@property (nonatomic, strong) ZCRefreshView *zcRefreshView;

//懒加载水滴下拉框架
- (ZCRefreshView *)zcRefreshView {

    if (!_zcRefreshView) {
        _zcRefreshView = [[ZCRefreshView alloc] init];
        _zcRefreshView.delegate = self;
        _zcRefreshView.upInset = 0;
        _zcRefreshView.slimeMissWhenGoingBack = YES;
        _zcRefreshView.slime.skinColor = [UIColor whiteColor];
        _zcRefreshView.slime.lineWith = 1;
        _zcRefreshView.slime.shadowBlur = 4;
        _zcRefreshView.slime.shadowColor = [UIColor grayColor];
        _zcRefreshView.slime.bodyColor = [UIColor blackColor];
    }
    return _zcRefreshView;
}

把水滴框架添加到tableview上

[self.tableView addSubview:self.zcRefreshView];

实现水滴代理

/**
 下拉回调

 @param refreshView 水滴block
 */
- (void)slimeRefreshStartRefresh:(ZCRefreshView *)refreshView {

    //刷新当前页面
    [self testViewArray:self.array];
}

- (void)scrollViewDidScroll:(UIScrollView *)scrollView {
    [self.zcRefreshView scrollViewDidScroll];
}

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {
    [self.zcRefreshView scrollViewDidEndDraging];
}

Latest podspec

{
    "name": "ZCSlimeRefresh",
    "version": "0.1.0",
    "summary": "A short description of ZCSlimeRefresh.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/zczczyc/ZCSlimeRefresh",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "zczczyc": "gitzczyc"
    },
    "source": {
        "git": "https://github.com/zczczyc/ZCSlimeRefresh.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ZCSlimeRefresh/Classes/**/*",
    "dependencies": {
        "Masonry": [
            "~> 1.1.0"
        ]
    },
    "resources": [
        "ZCSlimeRefresh/Classes/ZCSlimeRefresh.bundle"
    ]
}

Pin It on Pinterest

Share This