//
//  UIButton+Category.h
//  poinner
//
//  Created by cqh on 2016/12/6.
//  Copyright © 2016年 QianEn payment technology co., LTD. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (Image)

//纵向
- (instancetype)initWithframe:(CGRect)frame setImage:(NSString *)image title:(NSString *)tilte titleFont:(UIFont *)font titleColor:(UIColor *)color backgroundColor:(UIColor *)bgColor imageTop:(BOOL)top interval:(CGFloat)interval target:(id)target action:(SEL)action;
//横向
- (instancetype)initWithframe:(CGRect)frame selectImage:(NSString *)image selectedImage:(NSString *)selectedImage title:(NSString *)tilte titleFont:(UIFont *)font titleColor:(UIColor *)color backgroundColor:(UIColor *)bgColor attributed:(BOOL)attributed attributedString:(NSMutableAttributedString *)attributeStr paragraphStyle:(NSMutableParagraphStyle *)paragraphStyle imageLeft:(BOOL)left interval:(CGFloat)interval target:(id)target action:(SEL)action;

- (instancetype)initWithframe:(CGRect)frame setImage:(NSString *)image title:(NSString *)tilte titleFont:(UIFont *)font titleColor:(UIColor *)color backgroundColor:(UIColor *)bgColor imageLeft:(BOOL)left interval:(CGFloat)interval target:(id)target action:(SEL)action;

@end

@interface UIImage (Color)

+ (UIImage *)createImageWithColor:(UIColor*)color;

@end
