Latest 0.0.7
Homepage https://github.com/kevll/LLRefresh
License MIT
Platforms ios 7.0, requires ARC
Dependencies MJRefresh
Authors
  • One line of code sets the pull-up to refresh and load more based on MJRefresh

  • 一行代码设置TableView或者CollectionView的下拉刷新、上拉加载
  • 内部实现页码的增减,避免每次设置刷新加载时计算页码

ScreenShots



How to use LLRefresh

  • Installation with CocoaPods:pod ‘LLRefresh’

  • Manual import:
  • Drag All files in the LLRefresh folder to project
  • Import the main file:#import "LLRefresh.h"

Code Examples

[self setScroll:_collectionView firstPageNor:1 networkCallback:^(NSInteger page, CompletionCallback completionCallback) {
   [LLNetworkEngine postWithUrl:@"http://api.tunjifen.com/nineAndTwentyBuy"       
        paraDic:@{@"data":@{@"size":@"10",@"bjmoney":@"2",@"index":@(page)}} 
        successBlock:^(BOOL isSuccess, NSString *message, id jsonObj) {
            completionCallback(isSuccess,jsonObj[@"data"][@"list"]);
        } failedBlock:^(NSError *error) {
            completionCallback(NO,@[]);
   }];
 }];
[self refreshScroll]; //立即下拉刷新

Remind

  • ARC

  • iOS>=6.0
  • iPhone iPad screen anyway

Hope

  • For more information, please see demo project or connect me with [email protected]

  • If you find any bugs or any other good ideas , please issues me , thanks very much!

Latest podspec

{
    "name": "LLRefresh",
    "version": "0.0.7",
    "summary": "One line of code sets the pull-up to refresh and load more based on MJRefresh.",
    "description": "u4e00u884cu4ee3u7801u8bbeu7f6eiOS TableView u6216u8005 CollectionViewu4e0bu62c9u5237u65b0u4e0au62c9u52a0u8f7d",
    "homepage": "https://github.com/kevll/LLRefresh",
    "license": "MIT",
    "authors": {
        "kevll": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/kevll/LLRefresh.git",
        "tag": "0.0.7"
    },
    "source_files": "LLRefresh/*.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "MJRefresh": []
    }
}

Pin It on Pinterest

Share This