The following code:
http://pastie.org/pastes/835022
in a custom UIView rotates the entire view including the gradient background.
W开发者_如何学Pythonhat is the proper way to rotate the polygon without rotating the background?
I'd separate your gradient from your polygon. Create a gradient layer for the gradient. Put your polygon drawing into the content layer. That should let your polygon be rotated without affecting the background.
精彩评论