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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
//
// MOFSToolbar.h
// MOFSPickerManager
//
// Created by luoyuan on 16/8/24.
// Copyright © 2016年 luoyuan. All rights reserved.
//
#import <UIKit/UIKit.h>
#define UISCREEN_WIDTH [[UIScreen mainScreen] bounds].size.width
#define UISCREEN_HEIGHT [[UIScreen mainScreen] bounds].size.height
@interface MOFSToolbar : UIToolbar
@property (nonatomic, strong) UIBarButtonItem *cancelBar;
@property (nonatomic, strong) UIBarButtonItem *commitBar;
@property (nonatomic, strong) UIBarButtonItem *titleBar;
/**
default Title: "取消"
*/
@property (nonatomic, strong) NSString *cancelBarTitle;
/**
default Color: [UIColor colorWithRed:0.090 green:0.463 blue:0.906 alpha:1]
*/
@property (nonatomic, strong) UIColor *cancelBarTintColor;
/**
default Title: "完成"
*/
@property (nonatomic, strong) NSString *commitBarTitle;
/**
default Color: [UIColor colorWithRed:0.090 green:0.463 blue:0.906 alpha:1]
*/
@property (nonatomic, strong) UIColor *commitBarTintColor;
/**
default Title: ""
*/
@property (nonatomic, strong) NSString *titleBarTitle;
/**
default Color: [UIColor colorWithRed:0.804 green:0.804 blue:0.804 alpha:1]
*/
@property (nonatomic, strong) UIColor *titleBarTextColor;
@property (nonatomic, strong) void (^cancelBlock)();
@property (nonatomic, strong) void (^commitBlock)();
@end