You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

19 lines
447 B

//
// CommonTabBar.h
// HC
//
// Created by huilinLi on 2025/11/25.
//
#import <UIKit/UIKit.h>
@protocol CommonTabBarDelegate <NSObject>
- (void)tabBarDidSelectIndex:(NSInteger)index;
@end
@interface CommonTabBar : UIView
@property (nonatomic, weak) id<CommonTabBarDelegate> delegate;
@property (nonatomic, assign) NSInteger selectedIndex; // 当前选中的索引
- (instancetype)initWithTabItems:(NSArray<NSDictionary *> *)tabItems;
@end