title: refresh controller for embedded tableview ios 6
body: <p>Hi i currently have embedded tableview in UIViewController. In the tableview i have collection of json data. I wish to make a refresh controller, so whenever the user pulls down, the json data is refreshed. </p>
  
  <p>I have tried the following code</p>
  
  <pre><code>- (void)viewDidLoad
  {
  [superviewDidLoad];
  
  UIRefreshControl *refreshControl = [[UIRefreshControl alloc]
  init];
  [refreshControl addTarget:nil action:@selector(updateArray) forControlEvents:UIControlEventValueChanged];
  self.refreshControl = refreshControl;
  
  }
  
  -(void) updateArray{
  [self.tableView reloadData];
  [self.refreshControl endRefreshing];
  }
  </code></pre>
  
  <p>I am getting an error which says property refreshControl not found in ViewController.</p>
  
  <p>Is it because i am using embedded tableview or am i doing something wrong? </p>