The following code:
http://pastie.org/pastes/835022
in a custom UIView rotates the entire view including the gradient background.
What is the proper way to rotate the polygon without rotating the background?
The following code:
http://pastie.org/pastes/835022
in a custom UIView rotates the entire view including the gradient background.
What 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.