tags:

views:

84

answers:

2

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: 

I think its not possibe in webview.

Warrior
A: 

In your HTML, add the following in the <head> section of your HTML.

<meta name="viewport" content="width=device-width" />
Robot K
am using xcode and objective c not the html
iPhoneStruggler
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