Coder Social home page Coder Social logo

windisv587 / irregulartabbar Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jiangyongjian/irregulartabbar

0.0 2.0 0.0 2.97 MB

自定义tabBar,IrregularTabBar。自己的,有什么不足请多多指教

License: MIT License

Objective-C 100.00%

irregulartabbar's Introduction

IrregularTabBar

自定义tabBar,IrregularTabBar。自己的,有什么不足请多多指教哈哈

GIF

IrregularTabBar IrregularTabBar IrregularTabBar

请大家主要小红点的细节,截图

IrregularTabBar

详细教学,请看IrregularTabBar2工程里面的 IrregularTabBar

工程结构

做下说明:请用IrregularTabBar.xcworkspace打开


├── IrregularTabBar     #请用IrregularTabBar.xcworkspace打开

|── IrregularTabBar     #第一个项目,完全自定义tabBar,但跟系统用法一样
       ├── Main        #导航控制器,tabBarController
         
└── IrregularTabBar2   #第二个项目,自定义继承系统UITabBar跟系统用法一样
       ├── Main        #导航控制器,tabBarController 
              
└── IrregularTabBar3    #第三个项目,不用自定义,完全用系统的
       ├── Main        #导航控制器,tabBarController

           

详解UITabBar结构

IrregularTabBar

Usage

IrregularTabBar 很简单,就想到与你创建工程,只要修改一下控制器的名字,跟换一下图片就OK了。

里面的Category是自己开发中常用和收集的分类,功能都非常强大。

拖出项目,修改项目名, 跟换图片,可以直接开发,代码完全融入你项目,跟自己开发的一模一样

IrregularTabBar 自定义tabBar,但用法跟系统完全一样.

self.tabBarItem.badgeValue = @"1";

self.tabBarController.selectedIndex = 4;

IrregularTabBar2 自定义继承系统UITabBar跟系统用法一样.

self.tabBarItem.badgeValue = @"1";

self.tabBarController.selectedIndex = 4;

UIView *badgeView = [UIView ff_firstInView:self.tabBarController.tabBar.subviews[4] clazzName:@"_UIBadgeView"];
        
[badgeView setValue:[NSValue valueWithCGRect:CGRectMake(-100, -100, 40, 18)] forKey:@"frame"];

UIView *badgeBackground = [UIView ff_firstInView:self.tabBarController.tabBar.subviews[4] clazzName:@"_UIBadgeBackground"];

[badgeBackground setValue:[UIImage imageNamed:@"m_badge"] forKey:@"_image"];

IrregularTabBar3 完全使用系统tabBar,用法和上面一样,需要看项目给出的警告.

联系我

QQ 453255376, 希望大家踊跃联系我,把程序写的更好。有更好的想法,有不明白的问我。以后tabBar想怎么搞就怎么搞,搞到它怀孕为止。喜欢的点个星星。

irregulartabbar's People

Contributors

jiangyongjian avatar

Watchers

 avatar  avatar

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.