Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
LoopyPageControl This application adds looping to the original PageControl example app from the iOS Developer Library (http://developer.apple.com/library/ios/#samplecode/PageControl/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007795). In the iPhone version of the app, a UIScrollView is used to allow the user to swipe between pages. This update adds looping so that when the user reaches the last page, they are able to swipe past it to display the first page again. The loop also works in reverse so that the user can swipe backwards from the first page and instantly display the last page. The original example also includes iPad content to show how to segregate controllers and content for different devices - this is unchanged here. Here's the original ReadMe: PageControl This application primarily demonstrates use of UIScrollView's paging functionality to use horizontal scrolling as a mechanism for navigating between different pages of content. With the iPad, this type of user interface is not really necessary since the screen is larger allowing for more content and detailed information. Designed as a universal application for both iPhone and iPad, this sample shows how to use two different sets of content, depending on which device the sample is running. The idea is that the iPhone uses a "smaller" set of images, while the iPad uses a "larger" set of images plus more detailed information. ÊAs a universal app this sample shows how to factor out these two types of UI and data based on the device.Ê For the iPhone - The app uses UIScrollView and UIPageControl to move between pages. For the iPad - The app uses one large UIView with tiled pages, each page presenting a popover to display more detailed information. Based on the UIDevice idiom type, the UIApplication delegate loads two different set of nib files, one for the iPhone and the other for the iPad. ÊTo direct this kind of UI factoring, the sample uses a base class called "ContentController". Subclasses of ContentController are used to support each device. Hence, the app loads two different user interfaces (or xibs) as well as two different sets of data driven by the ContentController. Build Requirements iOS SDK 4.1 and later. Runtime Requirements iOS OS 3.2 and later. Changes from Previous Versions 1.4 Updated as a universal application for iPhone and iPad. 1.3 Upgraded project to build with the iOS 4.0 SDK. 1.2 Fixed issue where scrolling by dragging the UIScrollView did not update the UIPageControl. 1.1 Added a check to eliminate flicker of the UIPageControl when it is used to change pages. 1.0 Initial version. Copyright (C) 2010 Apple Inc. All rights reserved.