title: dismissModalViewController with transition: left to right
body: <p>I was using a nice method to dismiss my modal view controller:</p>
  
  <pre><code>[self dismissModalViewControllerWithTransition:2];
  </code></pre>
  
  <p>which makes a slide transition from left to right, like a navigation controller does to pop a view.</p>
  
  <p>As this method is a non-public method, apple will not accept it. How can I program this kind of animation in my code (slide from left to right, to dismiss a modal view, and slide from right to left to present a modal view) ?</p>
  
  <p>Thanks in advance</p>