Coder Social home page Coder Social logo

cmpageviewcontroller's Introduction

CMPageViewController

This CMPageViewController is viewContainer which inherit UIView. It's function just like UIPageViewController but I thinek it's better. It is used as TableView and It will save ViewControllers in RAM in order to avoide make HTTP requests for repeated times.It's effect is simillar to Android's UI.

这个页面控制器是继承UIview的,它的功能像UIPageViewController但是我觉得是更好。使用方式和TableView差不多并且它会储存显示的ViewController来减少页面重复的HTTP请求。它的效果有点像Android的UI。

Effect

image

Install steps

1. Drop files in a floder called CMpageViewController into your project。

2. There are two classes in the floder. One is the ViewController and the other is a class called Appearance which is used for setting the CMpageViewController's profile. You can use a Method called "initWithFrame" to customized your frame. Just like:

CMpageViewController *view = [[CMpageViewController alloc] initWithFrame:CGRectMake(0, 64, [UIScreen mainScreen].bounds.size.width, [UIScreen mainScreen].bounds.size.height)];

Or you can use "init" Method to initialize object which has a full-frame.

Three Delegate Methods is required. You have to set all of them in order to have a good performance.

Please Check the Demo!

3. Enjoy it!!!!!!

PS: It welcome to be extended。

cmpageviewcontroller's People

Contributors

wuchuming avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

zhoushubao

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.