Latest 1.4.8
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit

![image]( 1.png)
Build Status
Pod Version
Carthage compatible
Pod Platform
Pod License

  • NinaPagerView is a segment easy to page your controllers and views.


  • [x] Low coupling,just create your own viewcontrollers or views,that’s it!
  • [x] Load your viewcontrollers or views.Not load at the same time.
  • [x] Just one line codes to finish the mission.
  • [x] Edit everything in TopTab as you wish.
  • [x] Not only fits UIViewController,but also fits UIView.
  • [x] Select NinaPagerStyle as you wish.




Drop in the Classes folder to your Xcode project.
You can also use cocoapods or Carthage.

Using CocoaPods

Add pod 'NinaPagerView' to your Podfile and run pod install.

pod 'NinaPagerView'

Using Carthage

Add the following line to your Cartfile:

github "RamWire/NinaPagerView"


You need add ‘NinaPagerView.h‘(CocoaPods) or <NinaPagerViewCarthage/NinaPagerViewCarthage.h>(Carthage) to your project.Then load the codes:

NinaPagerView *ninaPagerView = [[NinaPagerView alloc] initWithFrame:pagerRect WithTitles:titleArray WithVCs:vcsArray];
[self.view addSubview:ninaPagerView];

That’s all!

Other Settings and Tips

  • Numerous properties in NinaPagerView you can set as you wish🍻🍻🍻
  • You can set three necessary Array by following codes(please read the Example notes if you wanna to know more).
    NSArray *titleArray = @[
                        @"New York",
                        @"Los Angeles",
    NSArray *vcsArray = @[
  • If your controller doesn’t have navigationBar or you hide the navigationBar,you need set nina_navigationBarHidden to YES.
    ninaPagerView.nina_navigationBarHidden = YES;
  • Superior limit of creating controllers or views is 10,if wanna more,please modify MaxNums in NinaPagerView.
  • If you need push to the controller which contains NinaPagerView,please make sure your navigationBar’s translucent is NO.You can set like this:
    self.navigationController.navigationBar.translucent = NO;


Memory Management

  • If you care the vcs causes huge memory,please try NinaPagerViewDelegate delegate,default is load recent 5 vcs,others will dealloc.If you scroll to the dealloc page, it will load again.If you don’t use the delegate,default is NO.
  • (BOOL)deallocVCsIfUnnecessary {
    return YES;

    #### Current Page
  • Get current page of your views or viewcontrollers by the delegate method, you can code here when you need it.
  • (void)ninaCurrentPageIndex:(NSString *)currentPage {
    NSLog(@"Current page is %@",currentPage);

Change Log


Fix a bug may cause NinaPagerView in wrong location.


Fix scrollsToTop conflict issue.


Add properties for setting colors,now you just set frame,titleArray and vcsArray in init method.


Add properties for setting topTab’s height and title font,what’s more,able to set toptab whole underline hidden.


Fix some bugs and now you need not set navigationBar.translucent to NO,NinaPagerView will do it.


Change numerous macro definitions to NinaPagerView’s properties.More flexible to use NinaPagerView in different situations.


Add NinaDefaultPageIndex in UIParameter.h to select default page.


Add LoadWholePage in parameter.h that you can set YES to load all controllers or views at the same time.
New delegate method for NinaPagerView to get current page easily.


Optimize two-line title and details in SlideBlock.


NinaSlideBlock support two-line display in NinaPagerView.


Support navigationBarHidden situation,now you can select navigationBar hidden or not.


Improves some codes,meanwhile brings some changes for the framework,wish you like it:)
(1) Add a new NinaPagerStyle:NinaPagerStyleStateNormal,it’s a style which not has bottomline or sliderblock.You can choose it if needed.
(2) Creating Arrays in Example is changed,more clearly!
(3) TopTab height fasten to 40,if you wanna to change it,please set it in UIParameter.h.
(4) In NinaPagerStyleSliderBlock,now you can set block’s cornerRadius by setting in UIParameter.h.


Add some parameters to toptab’s bottomline or slider,now you can set their width and height to the project.


Fix topTab vertical-scroll in some conditions.


New selection of topTab style,now you can choose NinaPagerStyleBottomLine and NinaPagerStyleSlideBlock as gifs showed.


If you think vcs is not comfortable for your project, you can use view arrays to built.Just put views into array~


Support long-length title.


You can set titleSize for title animation(compare to origin title),command range between 1 and 1.5.If don’t set this,default scale is 1.15.

ninaPagerView.titleScale = 1.5;


If you wanna create VCs by IB or code by yourself, you can put VCs into array.You can create them like the Example codes.


  • If you find bugs in this project or any suggestions,hope you can give me feedback by issues or Email me to [email protected]


This project uses MIT License.

Latest podspec

    "name": "ZLNinaPagerView",
    "version": "1.4.8",
    "license": "MIT",
    "platforms": {
        "ios": "7.0"
    "summary": "NinaPagerView is a low-coupling segment easy to page your controllers and views.u589eu52a0u4e86u5df2u81eau52a8u8ba1u7b97u5bbdu5ea6u7684",
    "homepage": "",
    "authors": {
        "RamWire": "RamWire"
    "source": {
        "git": "",
        "tag": "1.4.8"
    "source_files": "NinaPagerView/**/*.{h,m}",
    "frameworks": "UIKit",
    "requires_arc": true

Pin It on Pinterest

Share This