iphone - Get UIWebView to scroll and bounce horizontally but not vertically -
i have iphone uiwebview contents approx 1000px x 200px. when scrolling finger, it'll bounce vertically not horizontally.
i want opposite: bounce horizontally not vertically.
is there trickery need in html achieve this? eg setting width , height on body explicitly maybe? or setting of uiwebview? can following totally disable bouncing, there similar set bouncing on per-direction basis?
[[[webview subviews] lastobject] setbounces:no];
thanks lot help
in ios 5, don't need access subviews. uiwebview
contains scrollview
property nested uiscrollview:
to disable bounce:
webview.scrollview.bounces = no;
to bounce vertically:
webview.scrollview.alwaysbouncevertical = no; webview.scrollview.alwaysbouncehorizontal = yes;
Comments
Post a Comment