Latest 0.1.5
Homepage https://github.com/ablettx/BLList
License MIT
Platforms ios 8.0, requires ARC
Dependencies MJRefresh
Authors

ACList

CI Status
Version
License
Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.


    //加载数据
    [self loadData:^(ACList * _Nonnull list) {

        //1. 列表刷新配置
        list.loadType = ACLoadTypeAll;
        list.listView = self.tableView;
        [list start];

        //2. 请求数据

        //请求参数
        NSDictionary *parameters = @{
                                     @"offset"  : @(list.range.location),
                                     @"number"  : @(list.range.length),
                                     };

        NSLog(@"parameters:%@", parameters);

        void (^requestFinish)(void) = ^(void) {
            //当前加载状态为下拉刷新时移除旧数据
            if (list.loadStatus == ACLoadStatusNew) [self.datas removeAllObjects];
            //3. 添加数据
            for (int i=0; i<20; i++) {
                NSString *obj = [NSString stringWithFormat:@"index:%lu", (unsigned long)list.range.location*list.range.length+i+1];
                [self.datas addObject:obj];
            }
            //4. 刷新
            [list finish];
        };

        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), requestFinish);
    }];

Requirements

Installation

ACList is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'ACList'

Author

ablettchen, [email protected]

License

ACList is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "BLList",
    "version": "0.1.5",
    "summary": "u5febu901fu914du7f6eu4e0bu62c9u5237u65b0u3001u4e0au62c9u52a0u8f7du3001u7a7au767du9875uff0cu9002u7528u4e8e UITableViewu3001UICollectionViewu3001UIScrollView",
    "homepage": "https://github.com/ablettx/BLList",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ablettx": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ablettx/BLList.git",
        "tag": "0.1.5"
    },
    "social_media_url": "https://weibo.com/ablettchen",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "BLList/Classes/**/*",
    "requires_arc": true,
    "dependencies": {
        "MJRefresh": [
            "~> 3.1.15.7"
        ]
    }
}

Pin It on Pinterest

Share This