How to controll the webview in the scrollview with the scrollview’s controller?

Discussion in 'Mac Programming' started by xiaohuli170, May 17, 2009.

  1. xiaohuli170 macrumors newbie

    Joined:
    Jan 13, 2009
    #1
    Usually, In the scrollview is a tableview or textview, and then We can control the page with the scroller on the right or at the bottom. Now I want to put the webview instead of the tableview or textview , and I don't wnat to controll the webpage with the safari's controller and with the scrollview's controller, but I don't know how to do? and if I can disable the safari's controller or not , How to do ? Or someone can give me a sample ? Thanks a lot!!!
     
  2. kainjow Moderator emeritus

    kainjow

    Joined:
    Jun 15, 2000
    #2
    If I understood you correctly, you're trying to customize the scrolling behavior of your WebView? If so, I don't think that will be very easy, since WebViews use their own subviews and scrollviews internally.

    Maybe you could be more specific as to what you're wanting to do overall?
     
  3. xiaohuli170 thread starter macrumors newbie

    Joined:
    Jan 13, 2009
    #3
    Yes , I want to cumtoming the scrolling behavior of the webview ,because My app want to show a lot of flash in the webview at one time. but if I try to do it , the app will crash. I think it is occured by the webview , so I want to first time show some swf of that , and then when I drag the controller of the scrollview , to show another swf , so I want to customing the scroller of the webview , but I think it is difficult , can you tell me how to do with it ?
     
  4. vishvesh macrumors newbie

    Joined:
    Mar 17, 2008
    Location:
    India
    #4
    You can't do that, I had tried it myself only to realize later that webkit doesn't allow customization of the scroll bar because it's not allowed by html standards, that is one of the reason for firefox and safari doesn't allow customization.

    But if i remember properly there is a java script for doing that, you would have to search for it.
     
  5. xiaohuli170 thread starter macrumors newbie

    Joined:
    Jan 13, 2009
    #5
    Thank you! first I disable the scroll bar in a html , and then I customize a scrollview enclosing the webview , and then I compute the size of the resource in it , it is too complex , but I got it . Thank you again!
     
  6. vishvesh macrumors newbie

    Joined:
    Mar 17, 2008
    Location:
    India

Share This Page