【问题标题】:UIWebView: Zooming and Restricting scrollingUIWebView:缩放和限制滚动
【发布时间】:2014-09-07 02:39:06
【问题描述】:

我的目标是将日历从here 加载到我的应用程序中。我无法解析它,所以我尝试简单地使用 UIWebView。问题是 webview 显示了整个页面,我只想显示日历,有没有办法自动放大日历并限制远离它的移动(即滚动)?

注意:我没有包含代码,因为我没有出现故障的代码,我需要帮助确定要编码的内容。

【问题讨论】:

    标签: ios xcode uiwebview calendar


    【解决方案1】:

    尝试使用这些:

    self.webView.scrollView.contentInset = UIEdgeInsetsMake(0.0, 0.0, 0.0, 0.0);//put the inset that you need
    self.webView.scrollView.delegate = self; //implement delegate methods to restrict scrolling
    

    【讨论】:

      猜你喜欢
      • 2012-07-25
      • 2011-12-13
      • 2016-01-14
      • 2013-02-05
      • 1970-01-01
      • 2013-06-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多