// // QXTabBarButton.h // FreeTabbar_JoeJin // // Created by J-Mac on 2024/5/24. // Copyright © 2024 JoeJin-QQ:853105953. All rights reserved. // #import #import #import "QXTabbarConfig.h" #import "TIMCommonModel.h" NS_ASSUME_NONNULL_BEGIN @class QXTabBarButton; @protocol QXTabBarButtonDelegate - (void)QXTabbarIconButtonClick:(QXTabBarButton *)button; @end @interface QXTabBarButton : UIControl @property (nonatomic, weak) id delegate; /// 背景图片按钮 @property (nonatomic, strong) UIButton *iconBtn; /// 文字 @property (nonatomic, strong) UILabel *titleLbl; @property (nonatomic,strong)TUIUnReadView *unreadView; /// 设置自定义tabbar的图片和文字 /// @param imageUrl 图片URL路径 /// @param title 标题文字 - (void)setTabBarImageUrl:(NSString *)imageUrl selectedImg:(NSString*)imageName title:(NSString *)title; @end NS_ASSUME_NONNULL_END