123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- //
- // YHNavigationBar.h
- // YouHuiProject
- //
- // Created by 小花 on 2018/1/16.
- // Copyright © 2018年 kuxuan. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- typedef NS_ENUM(NSInteger, YHNavigationBarStyle) {
- YHNavigationBarStyleNormal = 0,
- YHNavigationBarStyleTransparent,
- YHNavigationBarStyleWhite
- };
- @interface YHNavigationBar : UIView
- // 默认是:no
- @property (nonatomic, assign) BOOL showNavigationBarBottomLine;
- - (void)setBackButtonWithTarget:(id)target selector:(SEL)selector;
- /**
- 设置左边按钮
- */
- - (void)setCustomButtonWithButton:(UIButton*)button target:(id)target selector:(SEL)selector;
- - (void)setCustomLeftButtons:(NSArray<UIButton*>*)buttons;
- - (void)setCustomRightButtons:(NSArray<UIButton*>*)buttons;
- - (void)setNavTitle:(NSString*)title;
- /**
- titleView
- */
- - (void)setCustomTitleView:(UIView*)titleView;
- - (void)setYHNavigationBarStyle:(YHNavigationBarStyle)barStyle;
- - (void)setNavightionBarBackgroundColor:(UIColor *)color;
- @end
|