[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationCurve:UIUserInterfaceLayoutDirectionLeftToRight];
[CATransaction setDisableActions:FALSE];
tempImg.layer.position = self.view.center;
[UIView commitAnimations];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationCurve:UIUserInterfaceLayoutDirectionLeftToRight];
[CATransaction setDisableActions:FALSE];
tempImg.layer.position = self.view.center;
[UIView commitAnimations];
No comments:
Post a Comment