dkahgld

ZBNavigationBar.h 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // ZBNavigationBar.h
  3. // ZBProject
  4. //
  5. // Created by 学丽 on 2019/3/26.
  6. // Copyright © 2019 ZB. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. typedef NS_ENUM(NSInteger, ZBNavigationBarStyle) {
  11. YHNavigationBarStyleNormal = 0,
  12. YHNavigationBarStyleTransparent,
  13. YHNavigationBarStyleWhite
  14. };
  15. @interface ZBNavigationBar : UIView
  16. // 默认是:no
  17. @property (nonatomic, assign) BOOL showNavigationBarBottomLine;
  18. @property (nonatomic, strong) UILabel *navTitleLabel;
  19. - (void)setBackButtonWithTarget:(id)target selector:(SEL)selector;
  20. /**
  21. 设置左边按钮
  22. */
  23. - (void)setCustomButtonWithButton:(UIButton*)button target:(id)target selector:(SEL)selector;
  24. - (void)setCustomLeftButtons:(NSArray<UIButton*>*)buttons;
  25. - (void)setCustomRightButtons:(NSArray<UIButton*>*)buttons;
  26. - (void)setNavTitle:(NSString*)title;
  27. /**
  28. titleView
  29. */
  30. - (void)setCustomTitleView:(UIView*)titleView;
  31. - (void)setYHNavigationBarStyle:(ZBNavigationBarStyle)barStyle;
  32. - (void)setNavightionBarBackgroundColor:(UIColor *)color;
  33. @end
  34. NS_ASSUME_NONNULL_END