UIButton+direction.h 459 B

12345678910111213141516171819202122232425262728
  1. //
  2. // UIButton+direction.h
  3. // xike
  4. //
  5. // Created by 翟玉磊 on 2019/4/12.
  6. // Copyright © 2019 翟玉磊. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. typedef NS_ENUM(NSUInteger, directionType) {
  10. left=0,
  11. top=1,
  12. right=2,
  13. bottom=3
  14. };
  15. @interface UIButton (direction)
  16. /**
  17. 调整图片位置
  18. @param distance 间距
  19. @param direction 图片方向
  20. */
  21. -(void)buttonDistance:(CGFloat)distance direction:(directionType)direction;
  22. @end