UIView+Frame.h 641 B

12345678910111213141516171819202122232425
  1. //
  2. // UIView+Frame.h
  3. // Source
  4. //
  5. // Created by MD101 on 16/1/25.
  6. // Copyright © 2016年 yaocheng. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @interface UIView (Frame)
  10. @property (nonatomic, assign) CGFloat x;
  11. @property (nonatomic, assign) CGFloat y;
  12. @property (nonatomic, assign) CGFloat width;
  13. @property (nonatomic, assign) CGFloat height;
  14. @property (nonatomic, assign) CGSize size;
  15. @property (nonatomic, assign) CGFloat centerX;
  16. @property (nonatomic, assign) CGFloat centerY;
  17. /** view底部的距离 */
  18. @property (nonatomic, assign) CGFloat bottom;
  19. /** view右侧的距离 */
  20. @property (nonatomic, assign) CGFloat right;
  21. @end