#import <UIDocumentView.h>
List of all members.
Member Function Documentation
Centers the content in the document view.
This method is called automatically whenever the document view is zoomed.
- (void) dealloc |
|
|
[implementation] |
- (id) init |
|
|
[implementation] |
Initializes the internal variables of the object.
Do not use this method to initialize new instances of the object. It only encapsulates common initialization code and does not call any superclass constructors. Use initWithDocument or initWithFrame instead.
- Returns:
- The initialized object.
- (id) initWithCoder: |
|
(NSCoder *) |
aDecoder |
[implementation] |
Initializes the object using the data in a given unarchiver.
This method is used to provide compatibility with xib files. Do not call it programmatically.
- Parameters:
-
aDecoder | An unarchiver object. |
- Returns:
- The initialized object, or nil if the object couldn't be created.
- (id) initWithDocument: |
|
(UIDocument *) |
uiDocument |
|
Returns a document view initialized with the specified document.
- Parameters:
-
uiDocument | The initial document to display in the document view. |
- Returns:
- An initialized document view object.
- (id) initWithFrame: |
|
(CGRect) |
frame |
[implementation] |
Initializes the object with the specified frame rectangle and default display settings.
- Parameters:
-
frame | The frame rectangle for the view, measured in points. |
- Returns:
- The initialized object, or nil if the object couldn't be created.
Refreshes the document view: lazy loads all unloaded images in the preload area and unloads the rest.
This method is called automatically whenever the document view is scrolled or zoomed.
- (void) scrollViewDidEndDecelerating: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewDidEndDragging: |
|
(UIScrollView *) |
scrollView |
willDecelerate: |
|
(BOOL) |
decelerate |
|
|
| [implementation] |
- (void) scrollViewDidEndScrollingAnimation: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewDidEndZooming: |
|
(UIScrollView *) |
scrollView |
withView: |
|
(UIView *) |
view |
atScale: |
|
(float) |
scale |
|
|
| [implementation] |
- (void) scrollViewDidScroll: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewDidScrollToTop: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewDidZoom: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (BOOL) scrollViewShouldScrollToTop: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewWillBeginDecelerating: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewWillBeginDragging: |
|
(UIScrollView *) |
scrollView |
[implementation] |
- (void) scrollViewWillBeginZooming: |
|
(UIScrollView *) |
scrollView |
withView: |
|
(UIView *) |
view |
|
|
| [implementation] |
- (void) setDocument: |
|
(UIDocument *) |
value |
[implementation] |
Sets the document displayed in the document view.
Calling this method resets the content offset to start and the zoom level as close as possible to fit-to-width as the minimumZoomScale and maximumZoomScale properties allow.
- Parameters:
-
value | The document to be displayed in the document view. |
- (UIView *) viewForZoomingInScrollView: |
|
(UIScrollView *) |
scrollView |
[implementation] |
Member Data Documentation
A containing superview for the UIImageView objects that represent the pages of the document.
An operation queue for lazy loading the page images.
Property Documentation
- (id< UIScrollViewDelegate >) delegate [read, write, assign] |
The delegate of the document view object.
The document displayed in the document view.
Returns the currently displayed document in the document view.
- Returns:
- The currently displayed document.
- (UIImage *) placeholder [read, write, retain] |
The placeholder image to use for document pages that have not been loaded into memory yet.
Default is nil.
- (CGFloat) preloadFactor [read, write, assign] |
How many view-heights above and below the currently viewed area should be preloaded into memory.
Default is 0.
The documentation for this class was generated from the following files: