40 lines
858 B
Objective-C
40 lines
858 B
Objective-C
//
|
|
// 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
|