Latest1.0.3
Homepagehttps://github.com/rickytan/RTPagingViewController
LicenseMIT
Platformsios 5.0, requires ARC
FrameworksUIKit
Authors

Description

This is a iOS implementation for Android ViewPager. Most existing third party container view controllers didn’t manage children view controllers’ view appearence life cycle properly.

In a normal case, a controller’s view appearence method should be called in following order:

  • viewDidLoad:
  • viewWillAppear:
  • viewDidAppear:
  • viewWillDisappear:
  • viewDidDisappear:
  • viewDidUnload:

So I decided to build my own Container Controller, which handles view appearence correcttly, and it takes time…

Apple Doc

Finally, I have got the right result:

RTPagingViewController

Features

  • Handle view appearence properly
  • screen rotation support

Usage

FirstViewController *vc1 = ...;
vc1.title = "View1";
SecondViewController *vc2 = ...;
vc2.title = "View2";
...

RTPagingViewController *paging = [[RTPagingViewController alloc] init];
paging.controllers = @[vc1, vc2, ...];
paging.titleFont = ...;
paging.titleColor = ...;
paging.selectedTitleColor = ...;
paging.titleIndicatorView = ...;

Screenshot

screenshot

License

MIT

Latest podspec

{
    "name": "RTPagingViewController",
    "version": "1.0.3",
    "authors": {
        "Ricky Tan": "[email protected]"
    },
    "homepage": "https://github.com/rickytan/RTPagingViewController",
    "platforms": {
        "ios": "5.0"
    },
    "summary": "A simple to use Paging View Controller, a Android ViewPager Implimetation",
    "source": {
        "git": "https://github.com/rickytan/RTPagingViewController.git",
        "tag": "1.0.3"
    },
    "license": "MIT",
    "frameworks": "UIKit",
    "source_files": "Classes",
    "requires_arc": true,
    "social_media_url": "http://rickytan.cn"
}

Pin It on Pinterest

Share This