Giter Club home page Giter Club logo

cytabbar's Introduction

CYTabBar - 底部控制器

Platform Language

一. 功能简介 - Introduction

  • 中间按钮可凸出 (bulge设为YES 否则不突出)
  • 中按钮可设置控制器 或 普通按钮 (Controller传入nil为普通按钮)
  • 二级页面不再添加tababr
  • 小红点提醒 (当前控制器.tabBarItem.badgeValue = @"remind";)
  • 数字提醒用户(当前控制器.tabBarItem.badgeValue = @"100";)
  • 改变数字提醒背景颜色(当前控制器.tabBarItem.badgeColor = [UIColor xxxColor];)
  • 切换控制器 (当前tabBarController.selectedIndex = x(索引为添加控制器时的顺序);)

二. 安装 - Installation

  • 暂不支持CocoaPods
  • 手动导入:将项目中的“CYTabBar”文件夹拖入项目中
  • 在AppDelegate中导入头文件 "CYTabBarController.h"
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
self.window = [[UIWindow alloc]initWithFrame:[[UIScreen mainScreen]bounds]];

CYTabBarController * tabbar = [[CYTabBarController alloc]init];

[tabbar addChildController:[ViewController new] title:@"xx" imageName:@"xx" selectedImageName:@"xx"];

[tabbar addChildController:[ViewController2 new] title:@"xx" imageName:@"xx" selectedImageName:@"xx"];

[tabbar addCenterController:nil bulge:YES title:@"xx" imageName:@xx" selectedImageName:@"xx"];

self.window.rootViewController = tabbar;
[self.window makeKeyAndVisible];
return YES;
}

三.  要求 - Requirements

  • ARC环境. - Requires ARC
  • 竖屏. - Vertical Screen

四. 更新历史 - Update History

  • 2017.03.12 修复tabbar销毁的时候观察者移除问题

五. 更多 - More

  • 如果你发现任何Bug 或者 新需求请issue我.

  • 大家一起讨论一起学习进步.

  • QQ : 707214577点击这里给我发消息

cytabbar's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.