Latest 1.0.5
Homepage https://github.com/cq1402272764/CQTopBar
License MIT
Platforms ios 7.0, requires ARC
Authors

控件简介

快速集成下拉菜单控件,可自定义内容、属性、位置和大小,传入需要显示的标题文字和需要显示的控制器即可,请查看示例程序或者demo。

【注】

  • 所传入的标题文字数组和显示的控制器数组个数必须一致。

    CocoaPods

  1. Add pod 'CQTopBar', to your Podfile.

  2. Run pod install or pod update.

TopBar【示例】

@interface ViewController ()
@property (nonatomic, strong) CQTopBarViewController *topBar;
@end

@implementation ViewController
- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.topBar = [[CQTopBarViewController alloc] init];
    self.topBar.sectionTitles = @[@"Text1",@"Text2",@"Text3"];
    self.topBar.pageViewClasses = @[[Text1 class],[Text2 class],[Text3 class]];
    [self addChildViewController:self.topBar];
    [self.view addSubview:self.topBar.view];

    UITableView *tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, self.view.bounds.size.width, self.topBar.footerView.bounds.size.height)];
    tableView.delegate = self;
    tableView.dataSource = self;
    [self.topBar.footerView addSubview:tableView];
}

界面显示

image

Latest podspec

{
    "name": "CQTopBar",
    "version": "1.0.5",
    "summary": "u5febu901fu96c6u6210u4e0bu62c9u83dcu5355u7684u5c0fu63a7u4ef6",
    "homepage": "https://github.com/cq1402272764/CQTopBar",
    "authors": {
        "CQ_ Develop": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "license": "MIT",
    "source": {
        "git": "https://github.com/cq1402272764/CQTopBar.git",
        "tag": "1.0.5"
    },
    "source_files": "CQTopBar/CQTopBar/**/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This