Why is my UIwebView content cut off in iOS?
I am developing an app for the Ipad, the whole app is a webView, in which i load a local html.The UIwe开发者_如何转开发bView fills the entire xib. The html had a one div with
width:100%;
position:absolute;
left:0px;
top:0px;
height:100%;
but it is consistently cut off on the right side by 50px or so?
how do i center it?
Try: <meta name = "viewport" content = "initial-scale = 1.0" />
If somebody else is having the same problem, check your xib file. The webview was not sized propperly :)
精彩评论