ios-KakaCustomTabBar.zip
自定义tabbar 可以push时隐藏 pop显示 单利的形式调用 保证项目中只有一个 调用方法: MainTabBarController *tabBarVC = [MainTabBarController shareInstance]; self.window.rootViewController = tabBarVC; 如何设置控制的控制器: NSArray *titles = @[@"首页", @"县区", @"工具", @"我的"]; NSArray *images = @[@"tabbar_home_default", @"tabbar_municipios_default", @"tabbar_tools_default", @"tabbar_mine_default"]; NSArray *selectedImages = @[@"tabbar_home_select", @"tabbar_municipios_select", @"tabbar_tools_select", @"tabbar_mine_select"]; HomePageVC *home = [[HomePageVC alloc] init]; MunicipiosVC *municipios = [[MunicipiosVC alloc] init]; ToolsVC *tools = [[ToolsVC alloc] init]; MineVC *mine = [[MineVC alloc] init]; // self.viewControllers=@[homePage,municipio,tools,mine]; NSArray *viewControllers = @[home,municipios,tools,mine];; for (int i = 0; i < viewControllers.count; i ) { UIViewController *childVc = viewControllers; [self SetupChildVc:childVc title:titles image:images selectedImage:selectedImages]; } GitHub地址下载:https://github.com/guokai1120/KakaTabBar 如果对你有帮助不要忘了给我star支持
- 1
- 粉丝: 784
- 资源: 3万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助