Disable Scroll on a UIWebView allowed?

后端 未结 18 1459
深忆病人
深忆病人 2020-12-07 11:52

I have to show a web article with a UITableView under the article.

The only option I found was to display the article in a UIWebView in the

相关标签:
18条回答
  • 2020-12-07 12:41

    [[myWebView scrollView] setBounces:NO];

    0 讨论(0)
  • 2020-12-07 12:43
    [[[WebView subviews] lastObject] setScrollingEnabled:NO];
    

    that sorted it for me

    0 讨论(0)
  • 2020-12-07 12:44

    Is a UIWebview and a UITableView on a UIScrollview, and setting the height of the webview (and adding to the total ContentSize of the Scrollview) like what you want?

    0 讨论(0)
  • 2020-12-07 12:45

    The first is rejected by Apple. It happened to me just this morning.

    0 讨论(0)
  • 2020-12-07 12:50

    Use it :

    [[webView scrollView] setBounces:NO];
    [[webView scrollView] setScrollingEnabled:NO];
    
    0 讨论(0)
  • 2020-12-07 12:50

    Try this,

    [(UIScrollView *)[[webView subviews] lastObject] setScrollEnabled:NO];    
    
    0 讨论(0)
提交回复
热议问题