省钱达人老版本

YHNavigationBar.h 994B

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