Giter Club home page Giter Club logo

yeebadge's Introduction

Yeebadge


add badgeView for UIView

OverView

Support Three Style,but you don't need to know it's implementation, i haved deal with it

  • YeeBadgeRedDotStytle
  • YeeBadgeNumberStytle
  • YeeBadgeTextStytle

How to use

pod 'YeeBadgeView', '~> 0.0.4'
  • UITabBarItem
self.tabBarItem.redDotColor = [UIColor blueColor];
self.tabBarItem.redDotNumber = 100;
[self.tabBarItem ShowBadgeView];
  • UIView
m_pContentView = [[UIView alloc] initWithFrame:CGRectMake(35, 120, 100, 35)];
[m_pContentView setBackgroundColor:[UIColor blueColor]];
[m_pContentView ShowBadgeView];
[self.view addSubview:m_pContentView];
  • UIBarButtonItem
self.navigationItem.leftBarButtonItem.redDotColor = [UIColor blueColor];
self.navigationItem.leftBarButtonItem.redDotNumber = 100;
[self.navigationItem.leftBarButtonItem ShowBadgeView];

ScreenShot

2018-4-14.png

Version

日期 版本 功能
20190506 0.0.4 support borderWidth,borderColor,maxNumber
20181128 0.0.3 pod support

Thanks

nice2m

yeebadge's People

Contributors

mr-yuwei avatar nice2m avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

yeebadge's Issues

同个对象调用removeBadgeViewt后 再次调用 yee_MakeBadgeText 失效

在removeBadgeView中只是 removeFromSuperview而没有取消对象关联属性
导致[self yee_BadgeLable]==nil 无法触发 也无法再次触发addSubview 方法就无法第二次调用 yee_MakeBadgeText方法
建议在 removeBadgeView方法中添加对象去除关联方法
objc_removeAssociatedObjects(self)

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.