1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- //
- // TDNavigationBar.h
- // TheoryNetwork
- //
- // Created by tederen on 2019/9/26.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- NS_ASSUME_NONNULL_BEGIN
- typedef enum{
- NavigationTintTypeBlack = 0,
- NavigationTintTypeWhite,
- }NavigationTintType;
- @protocol TDNavigationBarDelegate <NSObject>
- - (void)backButtonAction;
- - (void)backButtonAction2:(TDButton *)sender;
- - (void)rightButtonAction:(TDButton *)sender;
- @end
- @interface TDNavigationBar : UIView
- @property (nonatomic, strong) UIView *lineVi;
- @property (nonatomic, strong) TDButton *backButton;
- @property (nonatomic, strong) TDButton *backButton2;
- @property (nonatomic, strong) UILabel *titleLabel;
- @property (nonatomic, strong) TDButton *rightButton;
- @property (nonatomic, weak) id<TDNavigationBarDelegate> delegate;
- - (instancetype)initNavigationBar;
- - (void)setTitle:(NSString *)titleStr;
- - (void)setBackButtonTitle:(NSString *)backStr;
- - (void)setRightButtonTitle:(NSString *)rightStr;
- - (void)setNavigationTintType:(NavigationTintType)type;
- @end
- NS_ASSUME_NONNULL_END
|