Help us understand the problem. What is going on with this article?

ISRefreshControl(iOS4-compatible UIRefreshControl)

More than 5 years have passed since last update.


Xcode: 4.6.3
Base SDK: iOS 6.1
Deployment Target: 5.1


Install from GitHub

$ cd workspace
$ git clone
$ git clone
  1. Drag ISMethodSwizzling/ISMethodSwizzling/ & Drop Xcode Project Navigator
  2. Destination "Copy items into destination group's folder (if needed)" checked
  3. Folders "Create groups for any added folders" checked
  4. Add to targets main project checked
  5. Do the same above action for ISRefreshControl

For Example

#import "ISRefreshControl.h"

- (void)viewDidLoad
  self.refreshControl = (id)[[ISRefreshControl alloc] init];
  [self.refreshControl addTarget:self action:@selector(refreshTableView:) forControlEvents:UIControlEventValueChanged];

- (void)refreshTableView:(ISRefreshControl *)refreshControl
  dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
    dispatch_async(dispatch_get_main_queue(), ^{
      [refreshControl endRefreshing];
#import "ISRefreshControl.h"

- (void)viewDidLoad
  ISRefreshControl *refreshControl = [[ISRefreshControl alloc] init];
  [self.tableView addSubview:refreshControl];
  [refreshControl addTarget:self action:@selector(refreshTableView:) forControlEvents:UIControlEventValueChanged];
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away