Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用来自https://github.com/vfr/Reader的 PDF 阅读器创建了一个应用程序。来源很棒,但我找不到滚动到特定页面的方法。例如,文档有 10 页,我想在启动时显示第 10 页。我该怎么做?
在- (void)handleSingleTap:(UITapGestureRecognizer *)recognizer 此行之后的方法中
- (void)handleSingleTap:(UITapGestureRecognizer *)recognizer
ReaderDocument *document = [ReaderDocument withDocumentFilePath:filePath password:phrase];
写下面的代码
[document setPageNumber:[NSNumber numberWithInt:10]];