NewUIViewFrmae.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //
  2. // NewUIViewFrmae.h
  3. // MingMen
  4. //
  5. // Created by 罗云飞 on 2017/3/9.
  6. // Copyright © 2017年 罗云飞. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. @interface UIView (ViewFrmae)
  10. /**
  11. * Shortcut for frame.origin.x.
  12. *
  13. * Sets frame.origin.x = left
  14. */
  15. @property (nonatomic) CGFloat left;
  16. /**
  17. * Shortcut for frame.origin.y
  18. *
  19. * Sets frame.origin.y = top
  20. */
  21. @property (nonatomic) CGFloat top;
  22. /**
  23. * Shortcut for frame.origin.x + frame.size.width
  24. *
  25. * Sets frame.origin.x = right - frame.size.width
  26. */
  27. @property (nonatomic) CGFloat right;
  28. /**
  29. * Shortcut for frame.origin.y + frame.size.height
  30. *
  31. * Sets frame.origin.y = bottom - frame.size.height
  32. */
  33. @property (nonatomic) CGFloat bottom;
  34. /**
  35. * Shortcut for frame.size.width
  36. *
  37. * Sets frame.size.width = width
  38. */
  39. @property (nonatomic) CGFloat width;
  40. /**
  41. * Shortcut for frame.size.height
  42. *
  43. * Sets frame.size.height = height
  44. */
  45. @property (nonatomic) CGFloat height;
  46. /**
  47. * Shortcut for center.x
  48. *
  49. * Sets center.x = centerX
  50. */
  51. @property (nonatomic) CGFloat centerX;
  52. /**
  53. * Shortcut for center.y
  54. *
  55. * Sets center.y = centerY
  56. */
  57. @property (nonatomic) CGFloat centerY;
  58. @end