text: //
  //  UIButton+UIButtonSetEdgeInsets.h
  //  test
  //
  //  Created by huang on 2016/11/30.
  //  Copyright © 2016年 huang. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  
  @interface UIButton (UIButtonSetEdgeInsets)
  //上下居中，图片在上，文字在下
  - (void)verticalCenterImageAndTitle:(CGFloat)spacing;
  - (void)verticalCenterImageAndTitle; //默认6.0
  //上下居中，图片在下，文字在上
  - (void)verticalCenterTitleAndImage:(CGFloat)spacing;
  - (void)verticalCenterTitleAndImage; //默认6.0
  
  //左右居中，文字在左，图片在右
  - (void)horizontalCenterTitleAndImage:(CGFloat)spacing;
  - (void)horizontalCenterTitleAndImage; //默认6.0
  
  //左右居中，图片在左，文字在右
  - (void)horizontalCenterImageAndTitle:(CGFloat)spacing;
  - (void)horizontalCenterImageAndTitle; //默认6.0
  
  //文字居中，图片在左边
  - (void)horizontalCenterTitleAndImageLeft:(CGFloat)spacing;
  - (void)horizontalCenterTitleAndImageLeft; //默认6.0
  
  //文字居中，图片在右边
  - (void)horizontalCenterTitleAndImageRight:(CGFloat)spacing;
  - (void)horizontalCenterTitleAndImageRight; //默认6.0
  
  @end
  