开发者

CATransform3D UIView z Border

I have a question about CATransform3D, I want to transform a view about 90 degrees(in any axis) and I want it a开发者_开发问答 thick z-border UIView *top... ... top.layer.transform=CATransform3DMakeRotation(radians(90), 1, 0, 0);

rotates the view but the view has 0 border width

thanks.


You can add additional layer that would be rotated by PI/2 along x axis and positioned to the boarder of your view. I believe there is no other way to get what you want, only openGL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜