滚动到PDF文档中的特定页面

时间:2013-10-01 11:16:16

标签: iphone ios objective-c

我使用https://github.com/vfr/Reader的PDF阅读器创建了一个应用程序。 源代码很棒,但我找不到滚动到特定页面的方法。例如,文档有10页,我想在启动时显示第10页。 有谁知道怎么做?

1 个答案:

答案 0 :(得分:2)

- (void)handleSingleTap:(UITapGestureRecognizer *)recognizer  此行之后的方法

ReaderDocument *document = [ReaderDocument withDocumentFilePath:filePath password:phrase];

编写以下代码

[document setPageNumber:[NSNumber numberWithInt:10]];