// // TDNavigationBar.h // TheoryNetwork // // Created by tederen on 2019/9/26. // Copyright © 2019 tederen. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN typedef enum{ NavigationTintTypeBlack = 0, NavigationTintTypeWhite, }NavigationTintType; @protocol TDNavigationBarDelegate - (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 delegate; - (instancetype)initNavigationBar; - (void)setTitle:(NSString *)titleStr; - (void)setBackButtonTitle:(NSString *)backStr; - (void)setRightButtonTitle:(NSString *)rightStr; - (void)setNavigationTintType:(NavigationTintType)type; @end NS_ASSUME_NONNULL_END