title: How can I select a cell without touching the screen?
body: <p>I have a UITableViewController and want to move down a cell in my table every time the accelerometer's X axis is greater then 0.5 (when this event occurs i increment a value named "TEST" ). How can i change the background of a cell that has it's indexPath.row equal to TEST ?</p>
  
  <p>Here is how i try to access the method(from the accelerometer function) but it gives me an error :</p>
  
  <pre><code>  - (void)accelerometer:(UIAccelerometer *)accelerometer didAccelerate:(UIAcceleration *)acceleration 
  {
  
  
                if(acceleration.x&gt;0.5)
                  TEST++; 
              if(TEST&lt;0) TEST=0;
              if(TEST&gt;19) TEST=19;
  
               NSIndexPath *temp = [[NSIndexPath alloc] initWithIndex:TEST];
              [self tableView:[self tableView] didSelectRowAtIndexPath:temp];
  
  
      }
  
       I have 20 rows in my table (hence the clamp).
  </code></pre>