12345678910111213141516171819202122232425262728 |
- //
- // UIButton+direction.h
- // xike
- //
- // Created by 翟玉磊 on 2019/4/12.
- // Copyright © 2019 翟玉磊. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- 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
|