How to move the uiview part of the screen from right to left using CATransition
<p>I am developing one application.In that i want to move the uiview from right to left using below code.</p>

<pre><code>-(void)centerAnimation1:(id)sender
{
theview=qstnview;
CATransition *animation = [CATransition animation];
animation.delegate = self;
[animation setDuration:0.4];
[animation setType:kCATransitionMoveIn];

if(rhtolft)
{
    [animation setSubtype:kCATransitionFromLeft];
}
else 
{
    [animation setSubtype:kCATransitionFromRight];
}
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
//[animation setanima]
[[theWindow layer] addAnimation:animation forKey:@"SwitchToView1"];

[[theview layer] addAnimation:animation forKey:@"SwitchToView1"];
[qstnview removeFromSuperview];
}

- (void)animationDidStop:(CAAnimation *)anim finished:(BOOL)flag{
    if(animate)
     {
    CATransition *animation = [CATransition animation];
    animation.delegate = self;
    [animation setDuration:0.4];
    [animation setType:kCATransitionMoveIn];
    if(rhtolft)
    {
        [animation setSubtype:kCATransitionFromLeft];
        rhtolft=NO;
    }
    else 
    {
        [animation setSubtype:kCATransitionFromRight];
    }
    //[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]];
    //[animation setanima]

         [[theview layer] addAnimation:animation forKey:@"SwitchToView1"];


         [self.view addSubview:qstnview];

}
 } 
</code></pre>

<p>But this one is moving the view from right side last edge to left side.But i need to move within the frame size only.I dont need to start from right side edge.So please tell me how to do that one.</p>
