How to change the height of webView dynamically?

前端 未结 4 1169
無奈伤痛
無奈伤痛 2021-01-16 10:22

I\'m currently using webView to display news,below the news I intend to put some buttons.so I need to get the height of webView so as to change the position of buttons accor

4条回答
  •  深忆病人
    2021-01-16 10:54

    According to your device type like iPhone 4 or iPhone 5 you can set your webview
    The web view has finished loading.
        - (void)webViewDidFinishLoad:(UIWebView *)webView {
    
            [DejalActivityView removeView];
    
            if ([objSpineCustomProtocol windowHeight] == 480) {
    
                termsWebView.frame = CGRectMake(termsWebView.frame.origin.x
                                                ,termsWebView.frame.origin.y
                                                ,termsWebView.frame.size.width
                                                ,350);
    
            }
    
        }// End of Method webViewDidFinishLoad
    

    //VKJ

提交回复
热议问题