Code Monkey home page Code Monkey logo

ioscustompagecontrollerdemoproject's Introduction

iOSCustomPageControllerDemoProject

##About

This page controller mimic's android style page controller, which we see in stock android's manage app option.

You can use this as alternative to existing iOS page controller, or to keep UI consistency among android and iOS app.

This demo project has some basic code which you can use to create this type of page control and modify as per your requirement

Basic idea behind this control

Design :

This controller needs to scroll views

  1. Top scroll view - This will show titles of pages, for this UILabel's view are added to this.

  2. Bottom scroll view - This will show actual content of pages, for this UIViewController's views are added to this. (You can add view's from same view controller, most common case with this type of control is table view controller)

Handling page swipe :

For this scrollview's delegate method is used

  • (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView

If user swipes to left page in right is displayed as current page with swipe to left animation. Page title is also animated with swipe effect along with page.

##Other Info :

Even this demo is created with following setup it can be easily created for iOS 4 and above.

  • Works for : iOS 6 and above
  • Uses ARC : Yes (Not much code you can easily convert to Non ARC if you want)
  • Xcode : 5 and above (Developed using 5.0.1)
  • Base SDK : 7.0
  • Uses storybord/xib ? : Storyboard (But you can also create it with xib not much code just one View Controller is required)
  • ioscustompagecontrollerdemoproject's People

    Watchers

     avatar  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.