简体   繁体   English

如何为pdf阅读器IOS应用程序添加可滚动的工具栏

[英]how to add a scrollable toolbar for pdf reader IOS application

I have downloaded the pdf reader from https://github.com/vfr/Reader . 我已经从https://github.com/vfr/Reader下载了pdf阅读器。 This looks great but the bottom page bar or toolbar is stable. 这看起来不错,但底部的页面栏或工具栏是稳定的。 It adds all the pages into one single tool bar with out providing any scrolling feature. 它将所有页面添加到一个工具栏中,而没有提供任何滚动功能。 could someone help me to change this to a scrollable view? 有人可以帮助我将其更改为可滚动视图吗?

I achieved this by changing the readerpagebar to derive from UIScrollviewController instead of UIViewController and increased the content size of scroll bar to number of images mounted in it. 我通过将readerpagebar更改为从UIScrollviewController而不是UIViewController派生,并将滚动条的内容大小增加到其中安装的图像数量来实现。 if someone needs further info, I will post the code here. 如果有人需要更多信息,我将在此处发布代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM