Latest 0.1.3
Homepage https://github.com/intmain/INBPullToRefresh
License MIT
Platforms ios 7.0, requires ARC
Dependencies AFNetworking
Authors

Image navigation bar pull to refresh library.

DemoGif

Requirement

  • ARC.
  • iOS 8.

Install

CocoaPods

Add pod 'INBPullToRefresh' to your Podfile.

Manually

  1. Copy INBPullToRefresh directory to your project.

Usage

#import "INBPullToRefreshView.h"
...
INBPullToRefreshView *refreshView = [self addPullToRefreshWithHeight:120 url:self.barImageURL tableView:self.tableView actoinHandler:^(INBPullToRefreshView *view) {
    // do something...
    // then must call stopAnimation method.
    [view performSelector:@selector(stopAnimation)];
}];

Customization

Property

You can customize below properties.

refreshView.pullIndicatorView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"reload.png"]];
refreshView.refreshThreshold = 60;
refreshView.maxImageHeight = 150;
refreshView.enableRefresh = NO; // tableView.bounces = NO;

Warnning

This library is implemented by "Method swizzling". If you are using "Method swizzling" for below methods, it can twist with this library.

viewWillAppear: 
viewDidAppear:
viewWillDisappear:
viewDidDisappear:
viewDidLayoutSubviews

LICENSE

MIT

Latest podspec

{
    "name": "INBPullToRefresh",
    "version": "0.1.3",
    "summary": "Image Navigation Bar pull to refresh library.",
    "homepage": "https://github.com/intmain/INBPullToRefresh",
    "license": "MIT",
    "authors": {
        "intmain": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/intmain/INBPullToRefresh.git",
        "tag": "v0.1.3"
    },
    "source_files": "INBPullToRefresh",
    "dependencies": {
        "AFNetworking": []
    },
    "requires_arc": true
}

Pin It on Pinterest

Share This