//
//  YXToolbar.h
//  YXPickerView
//
//  Created by 曹云霄 on 2017/7/14.
//  Copyright © 2017年 曹云霄. All rights reserved.
//

#import <UIKit/UIKit.h>

#define WIDTH [[UIScreen mainScreen] bounds].size.width
#define HEIGHT [[UIScreen mainScreen] bounds].size.height
#define COLOR [UIColor colorWithRed:0.804  green:0.804  blue:0.804 alpha:1]


@interface YXToolbar : UIToolbar

@property (nonatomic, strong) UIBarButtonItem *cancelButtonItem;
@property (nonatomic, strong) UIBarButtonItem *commitButtonItem;
@property (nonatomic, strong) UIBarButtonItem *titleButtonItem;



/**
 toolBar主题色
 */
@property (nonatomic, strong) UIColor *toolBarTintColor;

/**
 取消
 */
@property (nonatomic, copy) NSString *cancelTitle;

/**
 取消字体颜色
 */
@property (nonatomic, strong) UIColor *cancelTitleColor;

/**
 提交
 */
@property (nonatomic, copy) NSString *commitTitle;

/**
 提交字体颜色
 */
@property (nonatomic, strong) UIColor *commitTitleColor;

/**
 取消回调
 */
@property (nonatomic,copy) void(^cancelBlock)();

/**
 提交回调
 */
@property (nonatomic,copy) void(^commitBlock)();


@end
