Latest 0.1.0
Homepage https://github.com/lichenglu/TutorialScrollViewController
License MIT
Platforms ios 8.0, requires ARC
Authors

[![CI Status](http://img.shields.io/travis/Chenglu Li/TutorialScrollViewController.svg?style=flat)](https://travis-ci.org/Chenglu Li/TutorialScrollViewController)
Version
License
Platform

Installation

TutorialScrollViewController is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "TutorialScrollViewController"

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.
Then, import the framework/library:

import TutorialScrollViewController

Now you are good to use the pod! TutorialScrollViewController is a subclass of PageController. So it would be better if you could change your viewController in storyboard to a pageViewController so that you can customize your "transitionStyle", as it is a read-only property.

To instantiate the controller, simply assign your target viewControllers’ storyboard [ids] to this property:

override func viewDidLoad() {
        super.viewDidLoad()

        // Instantiate your viewControllers that you wanna include in the pageController
        self.controllerStoryboardIds = ["Red","Green","Blue"] // Notice: it is an array of ids
    }

Build and Run!

Demo Gif

Customizable Properties:

// Enable pageLooping so that you can loop around pages
self.enablePageLooping = true

// Enable tapping action on page control
self.enableTappingPageControl = true

// Whether to show pageControl or not
self.pageControlIsHidden = false

// Adjust pageControl's y position
self.pageControlYPosition = 80.0

// Adjust pageControl's x position
self.pageControlXPosition = 0.0

Author

Chenglu Li, [email protected]

License

TutorialScrollViewController is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "TutorialScrollViewController",
    "version": "0.1.0",
    "summary": "A subclass of UIScrollViewController, which helps set up a working scrolling start-up tutorial view quickly",
    "description": "Whenever we make an app, it is really likely for us to include several tutorial views when app is first launched. Normally, these view are contained in a scrollViewController with paging enable. I believe most of you know how to achieve this from scratch, but it takes time. So this framework is aimed to minimize the work you need to do to set up a sound and working tutorial viewController",
    "homepage": "https://github.com/lichenglu/TutorialScrollViewController",
    "license": "MIT",
    "authors": {
        "Chenglu Li": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lichenglu/TutorialScrollViewController.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "TutorialScrollViewController": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This