开发者

UIWebView never displays scroll bar

开发者 https://www.devze.com 2023-01-30 05:43 出处:网络
I have a UIWebView displaying content of multiple pages in length. The problem is this: a scroll bar never appears while the user is scrolling the content vertically (unlike in Safari, or in other a

I have a UIWebView displaying content of multiple pages in length.

The problem is this: a scroll bar never appears while the user is scrolling the content vertically (unlike in Safari, or in other apps using what appears to be UIWebView). I can't see any way to control this programmatically.

Behaviour is the same on iOS 3.1 through 4.2, on both iPhone and iPad, both de开发者_Go百科vice and simulator.

Anyone have any ideas?


Are you sure the WebView is not slightly bigger than its parent? If it's a bit too big the scroll bars might actually be there but off the screen.


[(UIScrollView*)[webview.subviews objectAtIndex:0] setShowsVerticalScrollIndicator:YES];
0

精彩评论

暂无评论...
验证码 换一张
取 消