Latest 1.1.0
Homepage https://github.com/uzysjung/UzysCircularProgressPullToRefresh
License MIT
Platforms ios 6.1, requires ARC
Authors

Give Pinterest Like PullToRefresh to any UIScrollView with just simple code

Screenshot

UzysCircularProgressPullToRefresh features:

  • It’s very simple to use.
  • Support iOS7.
  • Support only ARC
  • Support CocoaPods.
  • Support Orientation change.

Installation

Copy over the files libary folder to your project folder

Usage

Import header.

#import "UIScrollView+UzysCircularProgressPullToRefresh.h"

Initialize

adding PullToRefreshActionHandler

-(void)viewWillAppear:(BOOL)animated
{
  __weak typeof(self) weakSelf =self;
  [_tableView addPullToRefreshActionHandler:^{
      [weakSelf insertRowAtTop];
  }];
}

programmatically trigger PullToRefresh

[_tableView triggerPullToRefresh];

stop PullToRefresh Activity Animation

[_tableView stopRefreshAnimation];

support customization

size change

[self.tableView.pullToRefreshView setSize:CGSizeMake(40, 40)];

borderWidth change

[self.tableView.pullToRefreshView setBorderWidth:4];

borderColor change

[self.tableView.pullToRefreshView setBorderColor:[UIColor colorWithRed:75/255.0 green:131/255.0 blue:188/255.0 alpha:1.0]];

Image Icon change

[self.tableView.pullToRefreshView setImageIcon:[UIImage imageNamed:@"thunderbird"]];

pulling offset change

[self.tableView.pullToRefreshView setProgressThreshold:25];

set LandScape Inset , Portrait Inset at Each Orientation.

[self.tableView addTopInsetInPortrait:64 TopInsetInLandscape:52]; 
// iOS 7 LandScape Navigationbar size 52 , Portrait Navigationbar size 64  

must call these customization methods after calling ‘addPullToRefreshActionHandler’

Contact

License

Latest podspec

{
    "name": "UzysCircularProgressPullToRefresh",
    "version": "1.1.0",
    "summary": "Give Pinterest Like PullToRefresh to any UIScrollView with just simple code.",
    "authors": {
        "UzysJung": "[email protected]"
    },
    "homepage": "https://github.com/uzysjung/UzysCircularProgressPullToRefresh",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "platforms": {
        "ios": "6.1"
    },
    "source": {
        "git": "https://github.com/uzysjung/UzysCircularProgressPullToRefresh.git",
        "tag": "1.1.0"
    },
    "requires_arc": true,
    "source_files": "UzysCircularProgressPullToRefresh/UzysCircularProgressPullToRefresh/Library",
    "resources": [
        "UzysCircularProgressPullToRefresh/UzysCircularProgressPullToRefresh/Library/*.png"
    ],
    "public_header_files": "UzysCircularProgressPullToRefresh/UzysCircularProgressPullToRefresh/Library/*.h"
}

Pin It on Pinterest

Share This