MFDocumentViewController Class Reference
| Inherits from | UIViewController |
| Conforms to | UIScrollViewDelegate |
| Declared in | MFDocumentViewController.h |
Tasks
-
documentDelegateThis property let you add the main DocumentViewControllerDelegate.
property -
– addDocumentDelegate:If you need to register objects as DocumentViewControllerDelegate you can add them using this method.
-
– removeDocumentDelegate:If you have more than one DocumentViewControllerDelegate you can remove any of them with this method.
-
directionalLockEnabledThis property enable or disable the directional lock in the inner (document) scroll view. Default is NO.
property -
useTiledOverlayViewThis property will enable an CATiledLayer version of the overlay view. This means overlay drawables will be drawn sharp, no matter the zoom of the scroll view.
property -
showHorizontalScrollerUse this property to hide or show the horizontal scroller under the pages.
property -
showShadowSet this flag to NO if you don’t want the dropdown shadow under the pages. Default is YES.
property -
paddingSet the amount of minimum padding between the pages and the screen edge. Default is 5.0. Values are clipped between 0 and 100.
property -
– addOverlayDataSource:Add and remove an Overlay Datasource for Drawables and Touchables.
-
fpkAnnotationsEnabledEnable or disable FPK Annotations parsing at page load. Set it to NO if you don’t use FPK Annotations and experience freezing while scrolling the pages. Default is YES (enabled).
property -
– addOverlayViewDataSource:Add an Overlay View Datasource for overlay UIViews.
-
– removeOverlayViewDataSource:Remove an Overlay View Datasource for overlay UIViews.
-
– reloadOverlayThis method will provoke the redraw of the overlay. Overlay Datasources will be asked to provide drawables.
-
– zoomLevelForAnnotationRect:ofPage:This will return the appropriate zoom level to perfectly zoom onto an annotation. If return 0, there’s no available page data to compute the zoom yet.
-
– zoomScaleReturn the zoom scale of the page scroll view.
-
– zoomOffsetReturn the offset of the page scroll view.
-
– leftPageThis method will return the page number of the left page displayed. If the mode is single page, the left page number is the current page.
-
– rightPageThis method will return the page number of the right page displayed. If the mode is single, right page number is invalid.
-
startingPageSet the starting page of the document. It is valid only after initialization and before the view is displayed on the screen. Tipically you want to set this just after the init of the viewController. Default is 1.
property -
pageFlipOnEdgeTouchEnabledEnable the page flip when the user touch the edges of the screen.
property -
– setEdgeFlipWidth:Set and get the percentage of the screen associated with the page flip on edge touch action. Default value is 0.1, this mean that the 10% of the width of the screen on either side will receive such events. Values are clipped between 0.0 and 0.5 to prevent overlap.
-
– edgeFlipWidthGet the edge flip width
-
defaultEdgeFlipWidthDefault value to wich the current value will be reset to after each page change. Default is 0.1.
property -
zoomInOnDoubleTapEnabledEnabled the zoom in when the user double tap on the screen.
property -
documentInteractionEnabledEnabled the document interaction.
property -
overlayEnabledEnable or disable the display of overlay item over the document. Default is disabled.
property -
legacyModeEnabledEnabled or force the legacy mode, or let the app choose to enable it or not depending on the device. Default is disabled.
property -
defaultMaxZoomScaleThis is the default maximum magnification the pdf will zoom.
property -
– initWithDocumentManager:Call this method to start working with the pdf.
-
– automodeOnRotationThis metod enable or disable the automatic mode switching upon rotation. If enabled, the page mode will be automatically changed to single page in portrait and side-by-side (double) on landscape. Setting the mode manually will disable the automode.
-
– setAutomodeOnRotation:Returns whether automode is enabled or not.
-
– setMode:Set how the pages are presented to the user. MFDocumentModeSingle present a single page to the user, centered on the screen. MFDocumentModeDouble present two pages side-by-side, as they would appear on a magazine or a books. This will allow to preserve content split between the pages, for example a large background image.
-
– setAutoMode:Set the mode to which the document will automatically switch to upon rotation. Pass MFDocumentAutoModeX values and not MFDocumentModeX values, since it is not guaranteed to be the same.
-
– modeReturns the current mode used to display the document.
-
– setPage:This metod will set the current page of the document and jump to the specified page. Current page is used to determine bookmarks position. On side-by-side (double) mode, it is usually the left-most page of the two.
-
– setPage:withZoomOfLevel:onRect:This metod will set the current page of the document and jump to the specified page, while trying to zoom in on the specified rect. Pass 0.0 as zoomLevel to let the application try to calculate the appropriate zoom level to fit the rectangle on screen.
-
– pageReturns the current page of the document.
-
– setLead:This method set the lead used to show the pages in side-by-side (double) mode. With MFDocumentLeadLeft, the cover will appear on the left side in side-by-side mode, whereas with MFDocumentLeadRight will appear on the right side. Use this method to keep pairing between pages for books and magazines. Single page mode is not affected by this setting.
-
– leadReturns the current lead used when presenting the document.
-
– setDirection:This method is used to set the page reading direction: left to right or right to left.
-
– directionReturn the current direction used by the document.
-
– setAutozoomOnPageChange:This method will turn on or off the autozoom feature. If on, the current zoom level will be kept between pages, otherwise will be rest to 100% on page change.
-
– autozoomOnPageChangeReturns whether the autozoom feature is enabled or not.
-
– moveToNextPageThis method will begin an animated transition to the next page, if available.
-
– moveToPreviousPageThis method will begin an animated transition to the previous page, if available.
-
– cleanUpCall this method rightly after dismissing this MFDocumentViewController instance. It will release all the resources and stop the background threads. Once this method has been called, the MFDocumentViewController instance cannot be considered valid anymore and should be released.
-
– convertPoint:fromViewtoPage:Convert a point from MFDocumentViewController’s view space to page space.
-
– convertPoint:toViewFromPage:Convert a point from page space to MFDocumentViewController’s view space.
-
– convertRect:fromViewToPage:Convert a rect from MFDocumentViewController’s view space to page space.
-
– convertRect:toViewFromPage:Convert a rect from page space to MFDocumentViewController’s view space.
-
– convertPoint:fromOverlayToPage:Convert a point from overlay space (the whole view that hold the both left and right page, and that you can zoom in and scroll over) to page space.
-
– convertPoint:toOverlayFromPage:Convert a point from page space to overlay space.
-
– convertRect:fromOverlayToPage:Convert a rect from overlay space to page space.
-
– convertRect:toOverlayFromPage:Convert a ract from page to overlay space.
-
– gesturesDisabledOverride in your subclass to toggle gesture recognizer on overlay views on and off.
-
– setScrollEnabled:Set the paged scroll enabled or not. Useful to lock the user in the current page during animations.
-
– setMaximumZoomScale:Set the maximum zoom scale for the pdf page.
-
previewsCountSet the max number of preview images to use at any time. Call this before presenting the MFDocumentViewController subclass. Default is 4, sweet spot is 3-4 and you should not exceed this number unless your target device are iPhone4 iPad2 or newer devices and/or your PDF are scarce of images.
property -
pagedScrollViewAccess the inner paged scroll view.
property
Properties
defaultEdgeFlipWidth
Default value to wich the current value will be reset to after each page change. Default is 0.1.
@property (nonatomic, readwrite) CGFloat defaultEdgeFlipWidthDiscussion
Default value to wich the current value will be reset to after each page change. Default is 0.1.
Declared In
MFDocumentViewController.hdefaultMaxZoomScale
This is the default maximum magnification the pdf will zoom.
@property (nonatomic, readwrite) float defaultMaxZoomScaleDiscussion
This is the default maximum magnification the pdf will zoom.
Declared In
MFDocumentViewController.hdirectionalLockEnabled
This property enable or disable the directional lock in the inner (document) scroll view. Default is NO.
@property (nonatomic, readwrite, getter=isDirectionLockEnabled) BOOL directionalLockEnabledDiscussion
This property enable or disable the directional lock in the inner (document) scroll view. Default is NO.
Declared In
MFDocumentViewController.hdocumentDelegate
This property let you add the main DocumentViewControllerDelegate.
@property (assign) NSObject<MFDocumentViewControllerDelegate> *documentDelegateDiscussion
This property let you add the main DocumentViewControllerDelegate.
Declared In
MFDocumentViewController.hdocumentInteractionEnabled
Enabled the document interaction.
@property (assign, readwrite, getter=isDocumentInteractionEnabled) BOOL documentInteractionEnabledDiscussion
Enabled the document interaction.
Declared In
MFDocumentViewController.hfpkAnnotationsEnabled
Enable or disable FPK Annotations parsing at page load. Set it to NO if you don’t use FPK Annotations and experience freezing while scrolling the pages. Default is YES (enabled).
@property (nonatomic, readwrite) BOOL fpkAnnotationsEnabledDiscussion
Enable or disable FPK Annotations parsing at page load. Set it to NO if you don’t use FPK Annotations and experience freezing while scrolling the pages. Default is YES (enabled).
Declared In
MFDocumentViewController.hlegacyModeEnabled
Enabled or force the legacy mode, or let the app choose to enable it or not depending on the device. Default is disabled.
@property (readwrite) BOOL legacyModeEnabledDiscussion
Enabled or force the legacy mode, or let the app choose to enable it or not depending on the device. Default is disabled.
Declared In
MFDocumentViewController.hoverlayEnabled
Enable or disable the display of overlay item over the document. Default is disabled.
@property (readwrite) BOOL overlayEnabledDiscussion
Enable or disable the display of overlay item over the document. Default is disabled.
Declared In
MFDocumentViewController.hpadding
Set the amount of minimum padding between the pages and the screen edge. Default is 5.0. Values are clipped between 0 and 100.
@property (nonatomic, readwrite) CGFloat paddingDiscussion
Set the amount of minimum padding between the pages and the screen edge. Default is 5.0. Values are clipped between 0 and 100.
Declared In
MFDocumentViewController.hpageFlipOnEdgeTouchEnabled
Enable the page flip when the user touch the edges of the screen.
@property (assign, readwrite, getter=isPageFlipOnEdgeTouchEnabled) BOOL pageFlipOnEdgeTouchEnabledDiscussion
Enable the page flip when the user touch the edges of the screen.
Declared In
MFDocumentViewController.hpagedScrollView
Access the inner paged scroll view.
@property (readonly) UIScrollView *pagedScrollViewDiscussion
Access the inner paged scroll view.
Declared In
MFDocumentViewController.hpreviewsCount
Set the max number of preview images to use at any time. Call this before presenting the MFDocumentViewController subclass. Default is 4, sweet spot is 3-4 and you should not exceed this number unless your target device are iPhone4 iPad2 or newer devices and/or your PDF are scarce of images.
@property (nonatomic, readwrite) NSUInteger previewsCountDiscussion
Set the max number of preview images to use at any time. Call this before presenting the MFDocumentViewController subclass. Default is 4, sweet spot is 3-4 and you should not exceed this number unless your target device are iPhone4 iPad2 or newer devices and/or your PDF are scarce of images.
Declared In
MFDocumentViewController.hshowHorizontalScroller
Use this property to hide or show the horizontal scroller under the pages.
@property (nonatomic, readwrite) BOOL showHorizontalScrollerDiscussion
Use this property to hide or show the horizontal scroller under the pages.
Declared In
MFDocumentViewController.hshowShadow
Set this flag to NO if you don’t want the dropdown shadow under the pages. Default is YES.
@property (nonatomic, readwrite) BOOL showShadowDiscussion
Set this flag to NO if you don’t want the dropdown shadow under the pages. Default is YES.
Declared In
MFDocumentViewController.hstartingPage
Set the starting page of the document. It is valid only after initialization and before the view is displayed on the screen. Tipically you want to set this just after the init of the viewController. Default is 1.
@property (nonatomic, readwrite) NSUInteger startingPageDiscussion
Set the starting page of the document. It is valid only after initialization and before the view is displayed on the screen. Tipically you want to set this just after the init of the viewController. Default is 1.
Declared In
MFDocumentViewController.huseTiledOverlayView
This property will enable an CATiledLayer version of the overlay view. This means overlay drawables will be drawn sharp, no matter the zoom of the scroll view.
@property (readwrite) BOOL useTiledOverlayViewDiscussion
This property will enable an CATiledLayer version of the overlay view. This means overlay drawables will be drawn sharp, no matter the zoom of the scroll view.
Declared In
MFDocumentViewController.hInstance Methods
addDocumentDelegate:
If you need to register objects as DocumentViewControllerDelegate you can add them using this method.
- (void)addDocumentDelegate:(NSObject<MFDocumentViewControllerDelegate> *)delegateDiscussion
If you need to register objects as DocumentViewControllerDelegate you can add them using this method.
Declared In
MFDocumentViewController.haddOverlayDataSource:
Add and remove an Overlay Datasource for Drawables and Touchables.
- (void)addOverlayDataSource:(id<MFDocumentOverlayDataSource>)odsDiscussion
Add and remove an Overlay Datasource for Drawables and Touchables.
Declared In
MFDocumentViewController.haddOverlayViewDataSource:
Add an Overlay View Datasource for overlay UIViews.
- (void)addOverlayViewDataSource:(id<FPKOverlayViewDataSource>)ovdsDiscussion
Add an Overlay View Datasource for overlay UIViews.
Declared In
MFDocumentViewController.hautomodeOnRotation
This metod enable or disable the automatic mode switching upon rotation. If enabled, the page mode will be automatically changed to single page in portrait and side-by-side (double) on landscape. Setting the mode manually will disable the automode.
- (BOOL)automodeOnRotationDiscussion
This metod enable or disable the automatic mode switching upon rotation. If enabled, the page mode will be automatically changed to single page in portrait and side-by-side (double) on landscape. Setting the mode manually will disable the automode.
Declared In
MFDocumentViewController.hautozoomOnPageChange
Returns whether the autozoom feature is enabled or not.
- (BOOL)autozoomOnPageChangeDiscussion
Returns whether the autozoom feature is enabled or not.
Declared In
MFDocumentViewController.hcleanUp
Call this method rightly after dismissing this MFDocumentViewController instance. It will release all the resources and stop the background threads. Once this method has been called, the MFDocumentViewController instance cannot be considered valid anymore and should be released.
- (void)cleanUpDiscussion
Call this method rightly after dismissing this MFDocumentViewController instance. It will release all the resources and stop the background threads. Once this method has been called, the MFDocumentViewController instance cannot be considered valid anymore and should be released.
Declared In
MFDocumentViewController.hconvertPoint:fromOverlayToPage:
Convert a point from overlay space (the whole view that hold the both left and right page, and that you can zoom in and scroll over) to page space.
- (CGPoint)convertPoint:(CGPoint)point fromOverlayToPage:(NSUInteger)pageDiscussion
Convert a point from overlay space (the whole view that hold the both left and right page, and that you can zoom in and scroll over) to page space.
Declared In
MFDocumentViewController.hconvertPoint:fromViewtoPage:
Convert a point from MFDocumentViewController’s view space to page space.
- (CGPoint)convertPoint:(CGPoint)point fromViewtoPage:(NSUInteger)pageDiscussion
Convert a point from MFDocumentViewController’s view space to page space.
Declared In
MFDocumentViewController.hconvertPoint:toOverlayFromPage:
Convert a point from page space to overlay space.
- (CGPoint)convertPoint:(CGPoint)point toOverlayFromPage:(NSUInteger)pageDiscussion
Convert a point from page space to overlay space.
Declared In
MFDocumentViewController.hconvertPoint:toViewFromPage:
Convert a point from page space to MFDocumentViewController’s view space.
- (CGPoint)convertPoint:(CGPoint)point toViewFromPage:(NSUInteger)pageDiscussion
Convert a point from page space to MFDocumentViewController’s view space.
Declared In
MFDocumentViewController.hconvertRect:fromOverlayToPage:
Convert a rect from overlay space to page space.
- (CGRect)convertRect:(CGRect)rect fromOverlayToPage:(NSUInteger)pageDiscussion
Convert a rect from overlay space to page space.
Declared In
MFDocumentViewController.hconvertRect:fromViewToPage:
Convert a rect from MFDocumentViewController’s view space to page space.
- (CGRect)convertRect:(CGRect)rect fromViewToPage:(NSUInteger)pageDiscussion
Convert a rect from MFDocumentViewController’s view space to page space.
Declared In
MFDocumentViewController.hconvertRect:toOverlayFromPage:
Convert a ract from page to overlay space.
- (CGRect)convertRect:(CGRect)rect toOverlayFromPage:(NSUInteger)pageDiscussion
Convert a ract from page to overlay space.
Declared In
MFDocumentViewController.hconvertRect:toViewFromPage:
Convert a rect from page space to MFDocumentViewController’s view space.
- (CGRect)convertRect:(CGRect)rect toViewFromPage:(NSUInteger)pageDiscussion
Convert a rect from page space to MFDocumentViewController’s view space.
Declared In
MFDocumentViewController.hdirection
Return the current direction used by the document.
- (MFDocumentDirection)directionDiscussion
Return the current direction used by the document.
Declared In
MFDocumentViewController.hedgeFlipWidth
Get the edge flip width
- (CGFloat)edgeFlipWidthDiscussion
Get the edge flip width
Declared In
MFDocumentViewController.hgesturesDisabled
Override in your subclass to toggle gesture recognizer on overlay views on and off.
- (BOOL)gesturesDisabledDiscussion
Override in your subclass to toggle gesture recognizer on overlay views on and off.
Declared In
MFDocumentViewController.hinitWithDocumentManager:
Call this method to start working with the pdf.
- (id)initWithDocumentManager:(MFDocumentManager *)aDocumentManagerDiscussion
Call this method to start working with the pdf.
Declared In
MFDocumentViewController.hlead
Returns the current lead used when presenting the document.
- (MFDocumentLead)leadDiscussion
Returns the current lead used when presenting the document.
Declared In
MFDocumentViewController.hleftPage
This method will return the page number of the left page displayed. If the mode is single page, the left page number is the current page.
- (NSUInteger)leftPageDiscussion
This method will return the page number of the left page displayed. If the mode is single page, the left page number is the current page.
Declared In
MFDocumentViewController.hmode
Returns the current mode used to display the document.
- (MFDocumentMode)modeDiscussion
Returns the current mode used to display the document.
Declared In
MFDocumentViewController.hmoveToNextPage
This method will begin an animated transition to the next page, if available.
- (void)moveToNextPageDiscussion
This method will begin an animated transition to the next page, if available.
Declared In
MFDocumentViewController.hmoveToPreviousPage
This method will begin an animated transition to the previous page, if available.
- (void)moveToPreviousPageDiscussion
This method will begin an animated transition to the previous page, if available.
Declared In
MFDocumentViewController.hpage
Returns the current page of the document.
- (NSUInteger)pageDiscussion
Returns the current page of the document.
Declared In
MFDocumentViewController.hreloadOverlay
This method will provoke the redraw of the overlay. Overlay Datasources will be asked to provide drawables.
- (void)reloadOverlayDiscussion
This method will provoke the redraw of the overlay. Overlay Datasources will be asked to provide drawables.
Declared In
MFDocumentViewController.hremoveDocumentDelegate:
If you have more than one DocumentViewControllerDelegate you can remove any of them with this method.
- (void)removeDocumentDelegate:(NSObject<MFDocumentViewControllerDelegate> *)delegateDiscussion
If you have more than one DocumentViewControllerDelegate you can remove any of them with this method.
Declared In
MFDocumentViewController.hremoveOverlayViewDataSource:
Remove an Overlay View Datasource for overlay UIViews.
- (void)removeOverlayViewDataSource:(id<FPKOverlayViewDataSource>)ovdsDiscussion
Remove an Overlay View Datasource for overlay UIViews.
Declared In
MFDocumentViewController.hrightPage
This method will return the page number of the right page displayed. If the mode is single, right page number is invalid.
- (NSUInteger)rightPageDiscussion
This method will return the page number of the right page displayed. If the mode is single, right page number is invalid.
Declared In
MFDocumentViewController.hsetAutoMode:
Set the mode to which the document will automatically switch to upon rotation. Pass MFDocumentAutoModeX values and not MFDocumentModeX values, since it is not guaranteed to be the same.
- (void)setAutoMode:(MFDocumentAutoMode)newAutoModeDiscussion
Set the mode to which the document will automatically switch to upon rotation. Pass MFDocumentAutoModeX values and not MFDocumentModeX values, since it is not guaranteed to be the same.
Declared In
MFDocumentViewController.hsetAutomodeOnRotation:
Returns whether automode is enabled or not.
- (void)setAutomodeOnRotation:(BOOL)automodeDiscussion
Returns whether automode is enabled or not.
Declared In
MFDocumentViewController.hsetAutozoomOnPageChange:
This method will turn on or off the autozoom feature. If on, the current zoom level will be kept between pages, otherwise will be rest to 100% on page change.
- (void)setAutozoomOnPageChange:(BOOL)autozoomDiscussion
This method will turn on or off the autozoom feature. If on, the current zoom level will be kept between pages, otherwise will be rest to 100% on page change.
Declared In
MFDocumentViewController.hsetDirection:
This method is used to set the page reading direction: left to right or right to left.
- (void)setDirection:(MFDocumentDirection)newDirectionDiscussion
This method is used to set the page reading direction: left to right or right to left.
Declared In
MFDocumentViewController.hsetEdgeFlipWidth:
Set and get the percentage of the screen associated with the page flip on edge touch action. Default value is 0.1, this mean that the 10% of the width of the screen on either side will receive such events. Values are clipped between 0.0 and 0.5 to prevent overlap.
- (void)setEdgeFlipWidth:(CGFloat)edgeFlipWidthDiscussion
Set and get the percentage of the screen associated with the page flip on edge touch action. Default value is 0.1, this mean that the 10% of the width of the screen on either side will receive such events. Values are clipped between 0.0 and 0.5 to prevent overlap.
Declared In
MFDocumentViewController.hsetLead:
This method set the lead used to show the pages in side-by-side (double) mode. With MFDocumentLeadLeft, the cover will appear on the left side in side-by-side mode, whereas with MFDocumentLeadRight will appear on the right side. Use this method to keep pairing between pages for books and magazines. Single page mode is not affected by this setting.
- (void)setLead:(MFDocumentLead)newLeadDiscussion
This method set the lead used to show the pages in side-by-side (double) mode. With MFDocumentLeadLeft, the cover will appear on the left side in side-by-side mode, whereas with MFDocumentLeadRight will appear on the right side. Use this method to keep pairing between pages for books and magazines. Single page mode is not affected by this setting.
Declared In
MFDocumentViewController.hsetMaximumZoomScale:
Set the maximum zoom scale for the pdf page.
- (void)setMaximumZoomScale:(NSNumber *)scaleDiscussion
Set the maximum zoom scale for the pdf page.
Declared In
MFDocumentViewController.hsetMode:
Set how the pages are presented to the user. MFDocumentModeSingle present a single page to the user, centered on the screen. MFDocumentModeDouble present two pages side-by-side, as they would appear on a magazine or a books. This will allow to preserve content split between the pages, for example a large background image.
- (void)setMode:(MFDocumentMode)newModeDiscussion
Set how the pages are presented to the user. MFDocumentModeSingle present a single page to the user, centered on the screen. MFDocumentModeDouble present two pages side-by-side, as they would appear on a magazine or a books. This will allow to preserve content split between the pages, for example a large background image.
Declared In
MFDocumentViewController.hsetPage:
This metod will set the current page of the document and jump to the specified page. Current page is used to determine bookmarks position. On side-by-side (double) mode, it is usually the left-most page of the two.
- (void)setPage:(NSUInteger)pageDiscussion
This metod will set the current page of the document and jump to the specified page. Current page is used to determine bookmarks position. On side-by-side (double) mode, it is usually the left-most page of the two.
Declared In
MFDocumentViewController.hsetPage:withZoomOfLevel:onRect:
This metod will set the current page of the document and jump to the specified page, while trying to zoom in on the specified rect. Pass 0.0 as zoomLevel to let the application try to calculate the appropriate zoom level to fit the rectangle on screen.
- (void)setPage:(NSUInteger)page withZoomOfLevel:(float)zoomLevel onRect:(CGRect)rectDiscussion
This metod will set the current page of the document and jump to the specified page, while trying to zoom in on the specified rect. Pass 0.0 as zoomLevel to let the application try to calculate the appropriate zoom level to fit the rectangle on screen.
Declared In
MFDocumentViewController.hsetScrollEnabled:
Set the paged scroll enabled or not. Useful to lock the user in the current page during animations.
- (void)setScrollEnabled:(BOOL)lockDiscussion
Set the paged scroll enabled or not. Useful to lock the user in the current page during animations.
Declared In
MFDocumentViewController.hzoomLevelForAnnotationRect:ofPage:
This will return the appropriate zoom level to perfectly zoom onto an annotation. If return 0, there’s no available page data to compute the zoom yet.
- (float)zoomLevelForAnnotationRect:(CGRect)rect ofPage:(NSUInteger)pageDiscussion
This will return the appropriate zoom level to perfectly zoom onto an annotation. If return 0, there’s no available page data to compute the zoom yet.
Declared In
MFDocumentViewController.h