| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- //
- // RTabBar.h
- // YBVideo
- //
- // Created by yunbao01 on 2023/11/9.
- // Copyright © 2023 cat. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger ,TabBarType){
-
- TabBarTypeHome = 100, //首页
- TabBarTypeAddress , //同城
- TabBarTypeNews , //消息
- TabBarTypeMe , //我的
- TabBarTypeAdd , // 中间按钮
- };
- @class RTabBar;
- @protocol RTabBarDelegate<NSObject>
- @required
- - (void)tabbar:(RTabBar *)tabbar withBtn:(TabBarType )tabbarType;
- @end
- @interface RTabBar : UIView
- @property (nonatomic,strong) NSMutableArray *itemArr;
- /**
- 背景
- */
- @property (nonatomic,strong) UIImageView *tabBarBJView;
- @property (nonatomic,strong) UILabel *msgCountLb;
- - (instancetype)initWithFrame:(CGRect)frame;
- @property (nonatomic,assign) NSInteger selectIndex;
- @property (nonatomic,weak) id<RTabBarDelegate>delegate;
- -(void)updateNum:(int)num;
- @end
|