[英]Make FSPDFViewCtrl scrollable only horizontally?
是否可以让FSPDFViewCtrl
仅水平滚动?
Yes its possible 是的,有可能
I haven't used the library you are mentioning but i can suggest you right direction for your solution. 我没有使用您提到的库,但是我可以为您的解决方案提供正确的建议。
For Swift 3, 4 : 对于Swift 3,4 :
[YOUR SCROLLABLE VIEW].contentSize = CGSize(width: 0, height: 1000)
same will work for Objective C 同样适用于目标C
please note: if you set width 0 in content size it means you are blocking horizontal scrolling and if you are setting height 0 then it means you are blocking vertical scrolling 请注意:如果您在内容大小中设置宽度0,则表示您正在阻止水平滚动;如果您将高度设置为0,则意味着您正在阻止垂直滚动
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.