iphone - CATransform3D rotate causes half of image to disappear -


i'm using following code rotate image, half image (down y-axis) has been rotated "out of" page, disappears. how fix? heading in radians.

    calayer *layer = myuiimageview.layer;     catransform3d rotationandperspectivetransform = catransform3didentity;     rotationandperspectivetransform.m34 = 1.0 / 500;     rotationandperspectivetransform = catransform3drotate(rotationandperspectivetransform, heading, 0.0f, 1.0f, 0.0f);     layer.transform = rotationandperspectivetransform; 

the solution set zposition property of layers appropriately. due @brad larson, suggested solution in comment here. seems that, when start using catransform3d, normal zindex view hierarchy established addsubview thrown out window.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -