Git Product home page Git Product logo

xxxtableload's Introduction

XXXTableLoad

效果图

此工程依赖 MJRefreshSDAutoLayoutReactiveCocoa 2.5.0 在使用pod导入时会自动导入

####主要针是对MJRefresh进一步封装,感谢李明杰CoderMJLee。 ####SDAutoLayout在工程中负责空数据界面的布局,感谢高少东GSD ####ReactiveCocoa 2.5.0主要负责将重试按钮的点击事件回传

安装

1.pod search XXXTableLoad
如未搜索到 请执行 pod repo update 进行更新,然后清除搜索缓存 rm ~/Library/Caches/CocoaPods/search_index.json

2.pod 'XXXTableLoad', '~> 1.0.1'

3.#import <XXXTableHeader.h>

3.设置配置项 通过 `XXXTableLoadConfig` 设置相关配置

主要根据配置的 [XXXTableLoadConfig manager].startPage 和 [XXXTableLoadConfig manager].singleMaxDataCount 来判断是否为空数据界面

#####[XXXTableLoadConfig manager].startPage 为数据加载的起始页码默认为1 #####[XXXTableLoadConfig manager].singleMaxDataCount 为后台单次返回的最大数据量默认为20条

使用

1.使用tableView调用此方法快速为tableView配置下拉动画 上拉动画

-(void)xxx_tableLoadDataClick:(void(^)(void))pullDownClick andPullUP:(void(^)(void))pullUpClic

2.单独配置下拉动画

-(void)xxx_tableSetPullDownAnimatioAndPdClick:(void (^)(void))pdClick;

3.与1.2方法配合使用,使用tableView调用此方法停止动画,并刷新列表

- (void)xxx_tableGetSingleCount:(NSInteger )singleCount page:(NSInteger )page image:(UIImage *)image tips:(NSString *)tips tryClick:(void(^)(void))tryAgain;

4.重试按钮根据是否补全tryClick来进行展示,一般在请求失败时补全

##具体使用方法请看Demo

xxxtableload's People

Stargazers

张衡 avatar

Watchers

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