Weird Perspective With CATransform3DMakeRotation

Posted by kopproduction on Stack Overflow See other posts from Stack Overflow or by kopproduction
Published on 2011-11-27T17:31:59Z Indexed on 2011/11/27 17:50 UTC
Read the original article Hit count: 228

I'm having an odd problem with CATransform3DMakeRotation. When the rotated view is in the center of the superview, it looks like this:

Valid XHTML

This is how it's supposed to look. However, when it's somewhere else in the superview, say, in the lower left corner, it looks like this:

Valid XHTML

Note that it is tilted to the right. Same thing happens when it's in the lower right corner, only that it tilts to the left. Is there some way to make it tilt the way it should all the time and in every position?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about objective-c