title: fade transition in iphone (forward and backwards)
body: <p>I'm almost done coding my project and I have come across 1 to 2 problems with the fading. Here is what my code looks like </p>
  
  <pre><code>CATransition *animation = [CATransition animation];
  [animation setDuration:0.5];
  [animation setType:kCATransitionFade];
  [animation setSubtype:kCATransitionFromRight, kCATransitionFromLeft];
  [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
  </code></pre>
  
  <p>It's telling me to set a subtype. I basically want to animate going back and going forward. I know i'm pretty close. What else am i missing from the code?</p>