// // UIButton+direction.h // xike // // Created by 翟玉磊 on 2019/4/12. // Copyright © 2019 翟玉磊. All rights reserved. // #import typedef NS_ENUM(NSUInteger, directionType) { left=0, top=1, right=2, bottom=3 }; @interface UIButton (direction) /** 调整图片位置 @param distance 间距 @param direction 图片方向 */ -(void)buttonDistance:(CGFloat)distance direction:(directionType)direction; @end