33 lines
674 B
Objective-C
33 lines
674 B
Objective-C
//
|
|
// KBCustomTabBar.h
|
|
// keyBoard
|
|
//
|
|
// Created by Assistant on 2026/01/16.
|
|
//
|
|
|
|
#import <UIKit/UIKit.h>
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@class KBCustomTabBar;
|
|
|
|
@protocol KBCustomTabBarDelegate <NSObject>
|
|
|
|
- (void)customTabBar:(KBCustomTabBar *)tabBar
|
|
didSelectItemAtIndex:(NSInteger)index;
|
|
|
|
@end
|
|
|
|
@interface KBCustomTabBar : UIView
|
|
|
|
@property(nonatomic, weak) id<KBCustomTabBarDelegate> delegate;
|
|
@property(nonatomic, assign) NSInteger selectedIndex;
|
|
|
|
- (instancetype)initWithItems:(NSArray<UITabBarItem *> *)items;
|
|
- (void)setSelectedIndex:(NSInteger)selectedIndex animated:(BOOL)animated;
|
|
- (void)setTransparentBackground:(BOOL)transparent;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|