Rotating UIWebView with transform, content partially off screen, how to get it to stick on screen?
- by jarmod
I have a 320x416 portrait-shaped UIWebView filling a UIViewController's view. I also have a 90 degree rotate button that will transform the UIWebView through 90 degrees each time the button is touched. The code is basically:
webView.transform = CGAffineTransformMakeRotation(touches%4 * M_PI/2.0);
After rotation through 90 degrees, the…