views:

1807

answers:

5

Hello,

I have an UIScrollView which contains 3 UIWebview. The problem is that my webview no more scroll on touch.

Do you have an idea ?

Thanks

Thierry

+1  A: 

UIWebView implements scrolling internally, so its own scrolling conflicts with the scrolling of the UIScrollView that contains it.

A possible solution to this could be to resize webviews to fully contain their content, similar to how webviews resize the frames in a frameset.

duncanwilcox
This is correct. Scrolling is a flick-gesture and according to the developer doc, UIWebView cannot be subclassed. I am using UIWebView for a credits page and want to autoscroll (like movie credits). I'll let you know how I solve.
mobibob
A: 

@duncanwilcox I have the same problem. Just one UIWebView inside a scroll view, both of same size 320x460 but all touches are intercepted by the scroll view. I have no idea how resizing the frame of the web view would solve the problem.

A: 

hi Thierry,

is it possible to show me how did you manage your UIWebviews inside your UIScrollView, I'm interesting in the code. I'm new in Objective-c and that can really help me.

Thank you,

ludo
A: 

anyone got this working? i am stuck on this as well. any help would be appreciated.

Bittu
A: 

I had the same problem, and posted the solution on my blog. http://www.juggleware.com/blog/2010/07/how-to-place-a-uiwebview-inside-a-uiscrollview/#comments

juggleware