Thursday, 28 March 2013

how to animate a UIView from left to right or as per your requirement in iOS .



You can add animation to your UIView or any sub view

ur_view.frame=CGRectMake(248, -420, 500, 414);  //your view start position
    
 [UIView animateWithDuration:0.5f
                          delay:0.0f
                        options:UIViewAnimationOptionBeginFromCurrentState
                     animations:^{
                         [ur_view setFrame:CGRectMake(248, 30, 500, 414)];   // last position
                     }
                     completion:nil];