Giter Club home page Giter Club logo

pagecontrol's Introduction

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.

pagecontrol's People

Contributors

stevemoser avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.