1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- //
- // BaseNavView.h
- // 乐销
- //
- // Created by 隋林栋 on 2016/12/17.
- // Copyright © 2016年 ping. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- #define BASENAVVIEW_LEFT_TITLE_FONT_NUM 16
- @interface BaseNavView : UIView
- @property (nonatomic, strong) UILabel * labelTitle;
- @property (nonatomic, strong) UIControl * backBtn;
- @property (nonatomic, strong) UIView *rightView;
- @property (nonatomic, strong) UIView *leftView;
- @property (nonatomic, strong) void (^leftBlock)(void);
- @property (nonatomic, strong) void (^rightBlock)(void);
- @property (nonatomic, strong) void (^blockBack)(void);
- @property (nonatomic, assign) BOOL isNotShowEditAlert;
- //刷新页面
- + (instancetype)initNavTitle:(NSString *)title
- leftView:(UIView *)leftView
- rightView:(UIView *)rigthView;
- - (void)resetNavTitle:(NSString *)title
- leftView:(UIView *)leftView
- rightView:(UIView *)rightView;
- //左返回 右view
- + (instancetype)initNavBackTitle:(NSString *)title
- rightView:(UIView *)rigthView;
- //左图片 右图片
- + (instancetype)initNavTitle:(NSString *)title
- leftImageName:(NSString *)leftImageName
- leftBlock:(void (^)(void))leftBlock
- rightImageName:(NSString *)rightImageName
- righBlock:(void (^)(void))rightBlock;
- //返回 右图片
- + (instancetype)initNavBackWithTitle:(NSString *)title
- rightImageName:(NSString *)rightImageName
- righBlock:(void (^)(void))rightBlock;
- //返回 右文字
- + (instancetype)initNavBackTitle:(NSString *)title
- rightTitle:(NSString *)rightTitle
- rightBlock:(void (^)(void))rightBlock;
- //更改title
- - (void)changeTitle:(NSString *)title;
- //更改nav right title
- - (void)changeRightTitle:(NSString *)title;
- //更改nav right image
- - (void)changeRightImage:(NSString *)imageName;
- //设置图片
- + (void)resetControl:(UIView*) control
- imageName:(NSString *) imageName
- isLeft:(BOOL)isLeft;
- + (void)resetControl:(UIView*) control
- title:(NSString *) title
- isLeft:(BOOL)isLeft;
- //返回 右文字
- - (void)initNavBackTitle:(NSString *)title
- rightTitle:(NSString *)rightTitle
- rightBlock:(void (^)(void))rightBlock;
- //设置蓝色模式
- - (void)restBlueStyle;
- #pragma mark 点击事件
- - (void)btnBackClick;
- @end
|