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

  1. //
  2. // CommonTabBar.h
  3. // HC
  4. //
  5. // Created by huilinLi on 2025/11/25.
  6. //
  7. #import <UIKit/UIKit.h>
  8. @protocol CommonTabBarDelegate <NSObject>
  9. - (void)tabBarDidSelectIndex:(NSInteger)index;
  10. @end
  11. @interface CommonTabBar : UIView
  12. @property (nonatomic, weak) id<CommonTabBarDelegate> delegate;
  13. @property (nonatomic, assign) NSInteger selectedIndex; // 当前选中的索引
  14. - (instancetype)initWithTabItems:(NSArray<NSDictionary *> *)tabItems;
  15. @end