// // UIButton+PBImageTitleSpacing.h // NgariDoctorBaseUI // // Created by LStar on 2018/7/23. // Copyright © 2018年 NgariHealth. All rights reserved. // #import typedef NS_ENUM(NSUInteger, PBButtonEdgeInsetsStyle) { /** image在上,label在下 */ PBButtonEdgeInsetsStyleTop, /** image在左,label在右 */ PBButtonEdgeInsetsStyleLeft, /** image在下,label在上 */ PBButtonEdgeInsetsStyleBottom, /** image在右,label在左 */ PBButtonEdgeInsetsStyleRight // }; @interface UIButton (/*PBImageTitleSpacing*/) /** * 设置button的titleLabel和imageView的布局样式,及间距 * * @param style titleLabel和imageView的布局样式 * @param space titleLabel和imageView的间距 */ - (void)layoutButtonWithEdgeInsetsStyle:(PBButtonEdgeInsetsStyle)style imageTitleSpace:(CGFloat)space; @end