// // ZBNavigationBar.h // ZBProject // // Created by 学丽 on 2019/3/26. // Copyright © 2019 ZB. All rights reserved. // #import NS_ASSUME_NONNULL_BEGIN typedef NS_ENUM(NSInteger, ZBNavigationBarStyle) { YHNavigationBarStyleNormal = 0, YHNavigationBarStyleTransparent, YHNavigationBarStyleWhite }; @interface ZBNavigationBar : UIView // 默认是:no @property (nonatomic, assign) BOOL showNavigationBarBottomLine; @property (nonatomic, strong) UILabel *navTitleLabel; - (void)setBackButtonWithTarget:(id)target selector:(SEL)selector; /** 设置左边按钮 */ - (void)setCustomButtonWithButton:(UIButton*)button target:(id)target selector:(SEL)selector; - (void)setCustomLeftButtons:(NSArray*)buttons; - (void)setCustomRightButtons:(NSArray*)buttons; - (void)setNavTitle:(NSString*)title; /** titleView */ - (void)setCustomTitleView:(UIView*)titleView; - (void)setYHNavigationBarStyle:(ZBNavigationBarStyle)barStyle; - (void)setNavightionBarBackgroundColor:(UIColor *)color; @end NS_ASSUME_NONNULL_END