《省钱达人》与《猎豆优选》UI相同版。域名tbk

DRNavigationBar.h 1.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // DRNavigationBar.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 DRNavigationBar : UIView
  15. // 默认是:no
  16. @property (nonatomic, assign) BOOL showNavigationBarBottomLine;
  17. @property (nonatomic, strong) UILabel *navTitleLabel;
  18. - (void)setBackButtonWithTarget:(id)target selector:(SEL)selector;
  19. /**
  20. 设置左边按钮
  21. */
  22. - (void)setCustomButtonWithButton:(UIButton*)button target:(id)target selector:(SEL)selector;
  23. - (void)setCustomLeftButtons:(NSArray<UIButton*>*)buttons;
  24. - (void)setCustomRightButtons:(NSArray<UIButton*>*)buttons;
  25. - (void)setNavTitle:(NSString*)title;
  26. /**
  27. titleView
  28. */
  29. - (void)setCustomTitleView:(UIView*)titleView;
  30. - (void)setYHNavigationBarStyle:(YHNavigationBarStyle)barStyle;
  31. - (void)setNavightionBarBackgroundColor:(UIColor *)color;
  32. @end