ifish/Ifish/views/CustomImgpicFiles/Categoies/UIButton+BBTButton.h

31 lines
1001 B
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// UIButton+BBTButton.h
// bangbangtang
//
// Created by guoyun3 on 16/5/9.
// Copyright © 2016年 guoyun3. All rights reserved.
//
#import <UIKit/UIKit.h>
typedef NS_ENUM(NSUInteger, UKButtonEdgeInsetsStyle) {
UKButtonEdgeInsetsStyleTop = 0, // image在上label在下
UKButtonEdgeInsetsStyleLeft = 1 << 1, // image在左label在右
UKButtonEdgeInsetsStyleBottom = 1 << 2, // image在下label在上
UKButtonEdgeInsetsStyleRight = 1 << 3 // image在右label在左
};
@interface UIButton(BBTButton)
/**
* 设置button的titleLabel和imageView的布局样式及间距
*
* @param style titleLabel和imageView的布局样式
* @param space titleLabel和imageView的间距
*/
- (void)layoutButtonWithEdgeInsetsStyle:(UKButtonEdgeInsetsStyle)style imageTitleSpace:(CGFloat)space;
//倒计时
- (void)startWithTime:(NSInteger)timeLine title:(NSString *)title countDownTitle:(NSString *)subTitle mainColor:(UIColor *)mColor countColor:(UIColor *)color;
@end