Wrapping/warping a CALayer/UIView (or OpenGL) in 3D (iPhone)
Posted
by jbrennan
on Stack Overflow
See other posts from Stack Overflow
or by jbrennan
Published on 2010-03-08T16:43:12Z
Indexed on
2010/03/16
10:16 UTC
Read the original article
Hit count: 708
I've got a UIView (and thus a CALayer) which I'm trying to warp or bend slightly in 3D space. That is, imagine my UIView is a flat label which I want to partially wrap around a beer bottle (not 360 degrees around, just on one "side").
I figured this would be possible by applying a transform to the view's layer, but as far as I can tell, this transform is limited to rotation, scale and translation of the layer uniformly. I could be wrong here, as my linear algebra is foggy at this point, to say the least.
How can I achieve this?
© Stack Overflow or respective owner