简体   繁体   English

使FSPDFViewCtrl仅可水平滚动?

[英]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.

相关问题 SwiftUI - 如何使水平滚动视图 RTL 友好? - SwiftUI - how to make horizontally scrollable views RTL friendly? iOS:使整个视图可滚动,而不仅仅是子视图 - IOS : Make entire view scrollable, not only subview 如何在Swift中的UIViewController中放置可水平滚动的组件? - How can I make a horizontally scrollable component that is placed in my UIViewController in Swift? 调整图像高度以适应屏幕(保持纵横比)并使 rest 以编程方式水平滚动 - Resize height of image to fit screen (keep aspect ratio) and make the rest horizontally scrollable programmatically 如何使用Objective-C以编程方式使UIView水平滚动? - How do I make my UIView scrollable horizontally programmatically using Objective-C? FSPDFViewCtrl的长宽比 - Aspect ratio of FSPDFViewCtrl 如何像在设置应用程序中那样使视图仅具有一个元素可滚动? - How to make a view scrollable with only one element like in the settings app? SwiftUI:仅当 ScrollView 超过屏幕高度时才可滚动 - SwiftUI: Make ScrollView scrollable only if it exceeds the height of the screen 如何使用SKSpriteKit使球仅垂直弹跳而不是水平弹跳? - How to make ball bounce vertically only and not horizontally using SKSpriteKit? 在iOS中创建水平滚动字幕标签? - Creating Horizontally scrollable marquee Label in IOS?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM