The Core iOS Developer’s Cookbook, Fifth Edition (Fahad Batla's Library) by Erica Sadun & Rich Wardwell

The Core iOS Developer’s Cookbook, Fifth Edition (Fahad Batla's Library) by Erica Sadun & Rich Wardwell

Author:Erica Sadun & Rich Wardwell
Language: eng
Format: epub, mobi
Publisher: Addison-Wesley Professional
Published: 2014-10-26T16:00:00+00:00


// Decide the prevailing direction, check new page against the old

UIPageViewControllerNavigationDirection direction =

(requestedPage > _pageNumber) ?

UIPageViewControllerNavigationDirectionForward :

UIPageViewControllerNavigationDirectionReverse;

// Update the controllers, never adding a nil result

NSMutableArray *pageControllers = [NSMutableArray array];

SAFE_ADD(pageControllers, [self controllerAtPage:leftPage]);

if (sideBySide)

SAFE_ADD(pageControllers,

[self controllerAtPage:leftPage + 1]);

[self setViewControllers:pageControllers

direction:direction animated:YES completion:nil];

[self updatePageTo:leftPage];

}



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.