hello all.I need to display a document in a uiwebview.I was succeeded in displaying it,but i need to move the webview only vertically.I don't want the horizontal scrolling how can i achieve this..Please help me
A:
In your HTML, add the following in the <head>
section of your HTML.
<meta name="viewport" content="width=device-width" />
Robot K
2010-10-13 05:45:12
am using xcode and objective c not the html
iPhoneStruggler
2010-10-13 08:51:48
Then you need to inject that line into the html, either before you load it into the web view, or using stringByEvaluatingJavaScriptFromString:. (http://developer.apple.com/library/ios/documentation/uikit/reference/UIWebView_Class/Reference/Reference.html#//apple_ref/occ/instm/UIWebView/stringByEvaluatingJavaScriptFromString:)
Robot K
2010-10-13 14:04:59