title: changing UITableView transition to opposite (from left to right) when drilling down
body: <p>I have read the View Transitions tutorial from Apple (<a href="http://developer.apple.com/library/ios/#samplecode/ViewTransitions/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007411-Intro-DontLinkElementID_2" rel="nofollow noreferrer">here</a>)
  the code that performs the transition is:</p>
  
  <pre><code>-(void)performTransition 
  
  
  { 
  
  
  // First create a CATransition object to describe the transition 
  
  
  CATransition *transition = [CATransition animation]; 
  
  
  // Animate over 3/4 of a second 
  
  
  transition.duration = 0.75; 
  
  
  // using the ease in/out timing function 
  
  
  transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; 
  
  
  
  
  
  // Now to set the type of transition. Since we need to choose at random, we'll setup a couple of arrays to help us. 
  
  
  NSString *types[4] = {kCATransitionMoveIn, kCATransitionPush, kCATransitionReveal, kCATransitionFade}; 
  
  
  NSString *subtypes[4] = {kCATransitionFromLeft, kCATransitionFromRight, kCATransitionFromTop, kCATransitionFromBottom}; 
  
  
  int rnd = random() % 4; 
  
  
  transition.type = types[rnd]; 
  
  
  if(rnd &lt; 3) // if we didn't pick the fade transition, then we need to set a subtype too 
  
  
  { 
  
  
      transition.subtype = subtypes[random() % 4]; 
  
  
  } 
  
  
  
  
  
  // Finally, to avoid overlapping transitions we assign ourselves as the delegate for the animation and wait for the 
  
  
  // -animationDidStop:finished: message. When it comes in, we will flag that we are no longer transitioning. 
  
  
  transitioning = YES; 
  
  
  transition.delegate = self; 
  
  
  
  
  
  // Next add it to the containerView's layer. This will perform the transition based on how we change its contents. 
  
  
  [containerView.layer addAnimation:transition forKey:nil]; 
  
  
  
  
  
  // Here we hide view1, and show view2, which will cause Core Animation to animate view1 away and view2 in. 
  
  
  view1.hidden = YES; 
  
  
  view2.hidden = NO; 
  
  
  
  
  
  // And so that we will continue to swap between our two images, we swap the instance variables referencing them. 
  
  
  UIImageView *tmp = view2; 
  
  
  view2 = view1; 
  
  
  view1 = tmp; 
  
  
  } 
  </code></pre>
  
  <p>my question is : how to use this code to change the transition of the table view to be from left to right when drilling down ? how to change the didSelectRowAtIndexPath method to accomplish this thing ?</p>
  
  <p>p.s. this question is not a duplicate of <a href="https://stackoverflow.com/questions/4291594/uitableview-transition-when-drilling-down">this one</a>.</p>