Inherits from UIPageViewController
Conforms to UIGestureRecognizerDelegate
UIPageViewControllerDataSource
UIPageViewControllerDelegate
Declared in YLPagesViewController.h
YLPagesViewController.m

Overview

This is the view controller that manages page swipes and also supplies the view controllers requested by the UIPageViewControllerDataSource protocol.

Tasks

Other Methods

Initialization

Properties

documentLead

Document lead of the parent YLPDFViewController instance.

@property (nonatomic, assign) YLDocumentLead documentLead

Discussion

Document lead of the parent YLPDFViewController instance.

Declared In

YLPagesViewController.h

page

Current page number (zero based).

@property (nonatomic, readonly) NSUInteger page

Discussion

Current page number (zero based).

Declared In

YLPagesViewController.h

Instance Methods

initWithPDFController:

Initializes a YLPagesViewController instance and returns it to the caller.

- (id)initWithPDFController:(YLPDFViewController *)controller

Parameters

controller

Reference to the parent YLPDFViewController instance.

Return Value

An initialized YLPagesViewController instance.

Discussion

Initializes a YLPagesViewController instance and returns it to the caller.

Declared In

YLPagesViewController.h

showPage:animated:

Used to navigate to a specific page.

- (void)showPage:(NSUInteger)page animated:(BOOL)animated

Parameters

page

Page number starting from 0.

animated

Boolean value that enables/disables animation.

Discussion

Used to navigate to a specific page.

Declared In

YLPagesViewController.h