Latest 1.2.0
Homepage https://github.com/liunianhuaguoyanxi/ZWTopSelectVcView
License MIT
Platforms ios 8.0
Authors

It’s an so easy way to add your all kinds of childControllers into superViewController, then you can slide around or just click on the topButton which is automatically building in the topView to switch your childViewController.

快速导入多个控制器,通过顶部选择菜单切换控制器,实现一个页面多个控制器切换处理.

How to integrate:

1.support Cocoapods

pod ‘ZWTopSelectVcView’

2.手动导入(Manual integration)

将项目中的“ZWTopSelectVcView”文件夹拖入项目中(draging the folder named “ZWTopSelectVcView” into your project)

How to use:

Import the header file(设置头文件)

#import "ZWTopSelectButton.h"
#import "ZWTopSelectVcView.h"

1. To initialize the ZWTopSelectVcView (初始化)

ZWTopSelectVcView *topSelectVcView=[[ZWTopSelectVcView alloc]init];
topSelectVcView.frame=self.view.frame;
[self.view addSubview:topSelectVcView];
self.topSelectVcView=topSelectVcView;

2. Set the dataSource of ZWTopSelectVcView(设置数据源,必选)

self.topSelectVcView.dataSource=self;

2.1 Set the delegate of ZWTopSelectVcView(设置代理,可选)

self.topSelectVcView.delegate=self;

3. Start drawing the UI (开始绘制UI)

[self.topSelectVcView setupZWTopSelectVcViewUI];

To implement proxy(Have to do)(一步导入你的各种控制器)

-(NSMutableArray )totalControllerInZWTopSelectVcView:(ZWTopSelectVcView )topSelectVcView
{

NSMutableArray *controllerMutableArr=[NSMutableArray array];

[controllerMutableArr addObject:[[OneTableViewController alloc]init]];
[controllerMutableArr addObject:[[TwoViewController alloc]init]];
[controllerMutableArr addObject:[[ThreeTableViewController alloc]init]];
[controllerMutableArr addObject:[[FourViewController alloc]init]];

return controllerMutableArr;

}

Show What it is    

image

Show one of the custom sizes

image

Show one controller can have multiple ZWTopSelectVcView

image

Show some of the effects about switching

imageimageimageimageimageimage

The specific content about it is in the demo(具体设置详情在demo中)

If you have any questions, please send the email to [email protected] or [email protected]

Latest podspec

{
    "name": "ZWTopSelectVcView",
    "version": "1.2.0",
    "summary": "It's an so easy way to add your all kinds of childControllers into superViewController",
    "description": "It's an so easy way to add your all kinds of childControllers into superViewController, then you can slide around or just click on the topButton which is automatically building in the topView to switch your childViewController",
    "homepage": "https://github.com/liunianhuaguoyanxi/ZWTopSelectVcView",
    "license": "MIT",
    "authors": {
        "liunianhuaguoyanxi": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/liunianhuaguoyanxi/ZWTopSelectVcView.git",
        "tag": "1.2.0"
    },
    "source_files": "ZWTopSelectVcView/ZWTopSelectVcView/*.{h,m}",
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This