Quote Originally Posted by milo08 View Post
Hi lieselbr,

yes you have to do this in the ViewController from your UIWebView, in the didRotateFromInterfaceOrientation function.

Code:
- (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation 
{
        [yourWebview stringByEvaluatingJavaScriptFromString:@"var e = document.createEvent('Events'); e.initEvent('orientationchange', true, false); document.dispatchEvent(e); "];    
}
that works, but in my tests is very slow. I don`t know its my app, i will test it.

greetz

milo
It didn't work in sencha 1.0.1a and iOS 4.2.1 UIWebView