RTabBar.h 887 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. //
  2. // RTabBar.h
  3. // YBVideo
  4. //
  5. // Created by yunbao01 on 2023/11/9.
  6. // Copyright © 2023 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSInteger ,TabBarType){
  10. TabBarTypeHome = 100, //首页
  11. TabBarTypeAddress , //同城
  12. TabBarTypeNews , //消息
  13. TabBarTypeMe , //我的
  14. TabBarTypeAdd , // 中间按钮
  15. };
  16. @class RTabBar;
  17. @protocol RTabBarDelegate<NSObject>
  18. @required
  19. - (void)tabbar:(RTabBar *)tabbar withBtn:(TabBarType )tabbarType;
  20. @end
  21. @interface RTabBar : UIView
  22. @property (nonatomic,strong) NSMutableArray *itemArr;
  23. /**
  24. 背景
  25. */
  26. @property (nonatomic,strong) UIImageView *tabBarBJView;
  27. @property (nonatomic,strong) UILabel *msgCountLb;
  28. - (instancetype)initWithFrame:(CGRect)frame;
  29. @property (nonatomic,assign) NSInteger selectIndex;
  30. @property (nonatomic,weak) id<RTabBarDelegate>delegate;
  31. -(void)updateNum:(int)num;
  32. @end