UIWebView does not resize in iPad portrait

當UIWebView 由iPad  landscape 轉向 portrait時,不知為何UIWebView沒自動resize.

解法:在willAnimateRotationToInterfaceOrientation中加入[webView reload];

 - (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation duration:(NSTimeInterval)duration

{

    

    [webView reload];

    [self.view setNeedsDisplay];

}

 

解法的原始Link