Skip to content

Instantly share code, notes, and snippets.

@OmidH
Created January 23, 2013 15:51
Show Gist options
  • Save OmidH/4608487 to your computer and use it in GitHub Desktop.
Save OmidH/4608487 to your computer and use it in GitHub Desktop.
3d transform
[UIView beginAnimations:nil context:nil];
CATransform3D _3Dt = CATransform3DRotate(self.view.layer.transform,3.14, 1.0, 0.0,0.0);
[UIView setAnimationRepeatCount:5];
[UIView setAnimationDuration:5];
self.view.layer.transform=_3Dt;
[UIView commitAnimations];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment