我使用https://github.com/vfr/Reader的PDF阅读器创建了一个应用程序。 源代码很棒,但我找不到滚动到特定页面的方法。例如,文档有10页,我想在启动时显示第10页。 有谁知道怎么做?
答案 0 :(得分:2)
- (void)handleSingleTap:(UITapGestureRecognizer *)recognizer
此行之后的方法
ReaderDocument *document = [ReaderDocument withDocumentFilePath:filePath password:phrase];
编写以下代码
[document setPageNumber:[NSNumber numberWithInt:10]];