Latest 0.1.6
Homepage https://github.com/ablettchen/ATBlank
License MIT
Platforms ios 8.0, requires ARC
Authors

CI Status
Version
License
Platform

Example


    #import "UIScrollView+ATBlank.h"

    UIScrollView *scrollView = ({
        UIScrollView *view = [UIScrollView new];
        [self.view addSubview:view];
        view.frame = self.view.bounds;
        view;
    });

    ATBlank *blank = failureBlank();
    blank.desc = [[NSAttributedString alloc] initWithString:@"10001"];
    blank.tapBlock = ^{
        NSLog(@"tap action");
        [scrollView setBlank:nil];
        [scrollView reloadBlankData];

        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
            NSLog(@"no data");
            [scrollView setBlank:noDataBlank()];
            [scrollView reloadBlankData];
        });
    };
    [scrollView setBlank:blank];
    [scrollView reloadBlankData];

Requirements

Installation

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

pod 'ATBlank'

Author

ablett, [email protected]

License

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

Latest podspec

{
    "name": "ATBlank",
    "version": "0.1.6",
    "summary": "blank view",
    "homepage": "https://github.com/ablettchen/ATBlank",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "ablettchen": "[email protected]"
    },
    "social_media_url": "https://weibo.com/ablettchen",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/ablettchen/ATBlank.git",
        "tag": "0.1.6"
    },
    "source_files": "ATBlank/**/*.{h,m}",
    "resources": "ATBlank/ATBlank.bundle",
    "requires_arc": true
}

Pin It on Pinterest

Share This