title: IOS 7 how to use UITableView scrollToRowAtIndexPath
body: <p>I'm new to IOS 7 and I'm made a test application where I want to use scrollToRowAtIndexPath when a left swipe is detected. The swipe is detected but I'm struggling with the "self" definition.
  I get the error No visible @interface for 'SimpleTableViewController'</p>
  
  <pre><code>- (void)handleSwipeLeft:(UISwipeGestureRecognizer *)recognizer
  {
      NSLog(@"%u = %d",  recognizer.direction,recognizer.state);
  
       // jump to section 0 row 20 when leftswipe is dectected
      NSIndexPath *newIndexPath = [NSIndexPath indexPathForRow:20 inSection:0];
  
      [self.tableView scrollToRowAtIndexPath:newIndexPath atScrollPosition:UITableViewScrollPositionTop animated:NO];
  
  }
  </code></pre>
  
  <p>I can send the complete source code if you want or you can download it here:</p>
  
  <p>www.auditext.com/xintax/SimpleTable.zip</p>
  
  <p>Using self.tableView gives message Property 'tableView' not found on object of type 'SimpleTableViewController' –</p>
  
  <p>It works now I have added this line to my viewcontroller.h:
  `@property (strong, nonatomic) IBOutlet UITableView *myview;</p>
  
  <p>NSIndexPath *loc = [NSIndexPath indexPathForRow:row inSection:section];</p>
  
  <p>[self.myview scrollToRowAtIndexPath:loc atScrollPosition:UITableViewScrollPositionBottom animated:YES];
  `</p>