forked from vfr/Reader
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathPDFViewController.h
41 lines (28 loc) · 1.01 KB
/
PDFViewController.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//
// PDFViewController.h
// Reader
//
// Created by Jade Meskill on 11/15/10.
// Copyright 2010 example.com. All rights reserved.
//
#import <UIKit/UIKit.h>
@class PDFScrollView;
@interface PDFViewController : UIViewController <UIScrollViewDelegate, UIGestureRecognizerDelegate> {
UIScrollView *pagingScrollView;
NSMutableSet *recycledPages;
NSMutableSet *visiblePages;
// these values are stored off before we start rotation so we adjust our content offset appropriately during rotation
int firstVisiblePageIndexBeforeRotation;
CGFloat percentScrolledIntoFirstVisiblePage;
}
@property (nonatomic, retain) UIScrollView *pagingScrollView;
- (BOOL)isDisplayingPageForIndex:(NSUInteger)index;
- (CGRect)frameForPagingScrollView;
- (CGRect)frameForPageAtIndex:(NSUInteger)index;
- (CGSize)contentSizeForPagingScrollView;
- (void)tilePages;
- (PDFScrollView *)dequeueRecycledPage;
- (NSInteger)pageCount;
- (PDFScrollView *)currentlyDisplayedPage;
- (void)initPDFScroll;
@end