-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSTNavBarView.h
More file actions
38 lines (27 loc) · 1.18 KB
/
Copy pathSTNavBarView.h
File metadata and controls
38 lines (27 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//
// STNavBarView.h
// STTest
//
// Created by 刘敏 on 16/5/30.
// Copyright © 2016年 深圳市轩腾华兴科技开发有限公司. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "UIConstants.h"
@interface STNavBarView : UIView
@property (nonatomic, weak) UIViewController *viewCtrlParent;
+ (CGRect)rightBtnFrame;
+ (CGSize)barBtnSize;
+ (CGSize)barSize;
+ (CGRect)titleViewFrame;
// 创建一个导航条按钮:使用默认的按钮图片。
+ (UIButton *)createNormalNaviBarBtnByTitle:(NSString *)strTitle target:(id)target action:(SEL)action;
// 创建一个导航条按钮:自定义按钮图片。
+ (UIButton *)createImgNaviBarBtnByImgNormal:(NSString *)strImg imgHighlight:(NSString *)strImgHighlight target:(id)target action:(SEL)action;
+ (UIButton *)createImgNaviBarBtnByImgNormal:(NSString *)strImg imgHighlight:(NSString *)strImgHighlight imgSelected:(NSString *)strImgSelected target:(id)target action:(SEL)action;
// 用自定义的按钮和标题替换默认内容
- (void)setLeftBtn:(UIButton *)btn;
- (void)setRightBtn:(UIButton *)btn;
- (void)setTitle:(NSString *)strTitle;
// 设置右侧按钮标题
- (void)setRightBtnTitle:(NSString *)strTitle;
@end