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

jQuery clickable div with working mailto link inside -

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -