I would like apply a 3D rotation on a view (in particular to a UILabel) in iPhone. What's the simplest way to do this?
A code example will be much appreciated.
For 2D rotation use:
//rotate label in 45 degrees
label.transform = CGAffineTransformMakeRotation( M_PI/4 );
For 3D transformations see this thread:
CATransform3D _3Dt = CATransform3DMakeRotation(radians(90.0f), 1.0, 0.0, 0.0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With