Files
featherVoice/QXLive/Tabbar/TabbarCustomView/QXTabBar.h

40 lines
858 B
C
Raw Normal View History

2025-08-08 10:49:36 +08:00
//
// QXTabBar.h
// FreeTabbar_JoeJin
//
// Created by J-Mac on 2024/5/24.
// Copyright © 2024 JoeJin-QQ:853105953. All rights reserved.
//
#import <UIKit/UIKit.h>
#import <Masonry/Masonry.h>
NS_ASSUME_NONNULL_BEGIN
@class QXTabBar,QXTabbarConfig;
@protocol QXTabBarDelegate <NSObject>
@optional
- (void)QXTabBar:(QXTabBar *)tabBar didSelectedButtonFrom:(NSInteger)from to:(NSInteger)to;
@end
@interface QXTabBar : UIView
- (instancetype)initWithFrame:(CGRect)frame centerCustom:(BOOL)centerCustom config:(QXTabbarConfig *)config;
- (void)addTabBarButtonNorImageUrl:(NSString *)norImageUrl
selImageUrl:(NSString *)selImageUrl
title:(NSString *)title;
@property (nonatomic, weak) id<QXTabBarDelegate> delegate;
@property (nonatomic,assign)UInt64 unReadNumber;
@end
NS_ASSUME_NONNULL_END