TabbarButton.h 844 B

12345678910111213141516171819202122232425262728293031
  1. //
  2. // TabbarButton.h
  3. // WFChat UIKit
  4. //
  5. // Created by WF Chat on 2017/9/12.
  6. // Copyright © 2017年 WildFireChat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. /** tabbar移除未读数红点儿时候发送的通知,object是当前选中的tabbar的index */
  10. FOUNDATION_EXPORT NSString *const kTabBarClearBadgeNotification;
  11. @interface TabbarButton : UIButton
  12. /** 大圆脱离小圆的最大距离 */
  13. @property (nonatomic, assign) CGFloat maxDistance;
  14. /** 小圆 */
  15. @property (nonatomic, strong) UIView *samllCircleView;
  16. /** 按钮消失的动画图片组 */
  17. @property (nonatomic, strong) NSMutableArray *images;
  18. /** 未读数 */
  19. @property (nonatomic, strong) NSString *unreadCount;
  20. @property (nonatomic, strong) UIImage *unreadCountImage;
  21. /** 绘制不规则图形 */
  22. @property (nonatomic, strong) CAShapeLayer *shapeLayer;
  23. @end