title: I do not understand why/how CGAffineTransformTranslate works
body: <p>I am creating a view and having it move on to the screen from left to right. I had a hard time getting it to work the way I wanted but when I did I was baffled at the way it worked.</p>
  
  <p>I thought I would have to create the view off screen to the left then use CGAffineTransformTranslate to move it onto the screen. But instead I am creating it on the screen, but it still works great. I am a bit confused.</p>
  
  <p>Here I am creating the view...</p>
  
  <pre><code>profileViewControllerForIPad = [[ProfileViewController alloc] initWithFrame:CGRectMake(0, 0, 512, 446)];
  </code></pre>
  
  <p>As you can see the origin is 0,0. So on screen, right?</p>
  
  <p>Here is the thransform...</p>
  
  <pre><code>[UIView animateWithDuration:0.5 
           animations:^{
              self.view.transform = CGAffineTransformTranslate(CGAffineTransformIdentity,self.view.frame.size.width, 0.0);                             
           }
   ];
  </code></pre>
  
  <p>As you can see I am setting the tx value to the width of the CGAffineTransformTranslate which I thought was the value for the number of pixels you wanted it to move from it's current position, origin.x of 0, which I expected would move it to the middle of the screen somewhere. Instead, it slides right in with it's new origin.x right at 0 where I want it.</p>
  
  <p>BTW CGAffineTransformIdentity works great sliding the view right back off the screen.</p>
  
  <p>Can someone explain this to me. The docs seem to say something different.</p>
  
  <p>Thanks,</p>
  
  <p>John </p>