title: UIRefreshControl Auto Start
body: <p>Is it possible to start <code>UIRefreshControl</code> automatically upon launch of an app? I tried calling <code>self.refreshControl beginRefreshing];</code> but it's not working.</p>
  
  <p>Here's some code in my viewDidLoad:</p>
  
  <pre><code>    UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
      [refreshControl addTarget:self action:@selector(refreshNowShowingMoviesList:) forControlEvents:UIControlEventValueChanged];
      [self setRefreshControl:refreshControl];
      [refreshControl beginRefreshing];
  </code></pre>
  
  <h2>Edit</h2>
  
  <p>Here's inside my refreshNowShowingMoviesList method:</p>
  
  <pre><code>- (void)refreshNowShowingMoviesList:(id)sender
  {
      // Create URL
      NSURL *url = [NSURL URLWithString:kNowShowingMoviesURL"];
  
      // Initialize URL request
      NSMutableURLRequest *urlRequest = [NSMutableURLRequest requestWithURL:url];
  
      // Set value on header
      [urlRequest setValue:kHeaderFieldValue forHTTPHeaderField:kHeaderField];
  
      // JSON request operation
      AFJSONRequestOperation *operation = [AFJSONRequestOperation JSONRequestOperationWithRequest:urlRequest success:^(NSURLRequest *request, NSHTTPURLResponse *response, id JSON) {
          NSMutableArray *results = [(NSDictionary *)JSON objectForKey:@"results"];
  
          if ([results count]) {
              _objects = results;
  
              // Reload table view
              [self.tableView reloadData];
  
              // End refreshing
              [(UIRefreshControl *)sender endRefreshing];
          }
  
      } failure:^(NSURLRequest *request, NSHTTPURLResponse *response, NSError *error, id JSON) {
          // End refreshing
          [(UIRefreshControl *)sender endRefreshing];
  
          // Show error alert
          dispatch_async(dispatch_get_main_queue(), ^{
              UIAlertView *errorAlert = [[UIAlertView alloc] initWithTitle:kSorryTitle message:[error localizedDescription] delegate:self cancelButtonTitle:nil otherButtonTitles:kOk, nil];
              [errorAlert show];
          });
      }];
  
      // Start operation
      [operation start];
  }
  </code></pre>
  
  <p>with the error message:</p>
  
  <pre><code>'NSInvalidArgumentException', reason: '-[MasterViewController endRefreshing]: unrecognized selector sent to instance 0xa172450'
  </code></pre>