1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- //
- // UIView+ST.h
- // Copyright © 2016年 ST. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- @interface UIView (ST)
- /**
- * 1.间隔X值
- */
- @property (nonatomic, assign) CGFloat x;
- /**
- * 2.间隔Y值
- */
- @property (nonatomic, assign) CGFloat y;
- /**
- * 3.宽度
- */
- @property (nonatomic, assign) CGFloat width;
- /**
- * 4.高度
- */
- @property (nonatomic, assign) CGFloat height;
- /**
- * 5.中心点X值
- */
- @property (nonatomic, assign) CGFloat centerX;
- /**
- * 6.中心点Y值
- */
- @property (nonatomic, assign) CGFloat centerY;
- /**
- * 7.尺寸大小
- */
- @property (nonatomic, assign) CGSize size;
- /**
- * 8.起始点
- */
- @property (nonatomic, assign) CGPoint origin;
- /**
- * 9.上 < Shortcut for frame.origin.y
- */
- @property (nonatomic) CGFloat top;
- /**
- * 10.下 < Shortcut for frame.origin.y + frame.size.height
- */
- @property (nonatomic) CGFloat bottom;
- /**
- * 11.左 < Shortcut for frame.origin.x.
- */
- @property (nonatomic) CGFloat left;
- /**
- * 12.右 < Shortcut for frame.origin.x + frame.size.width
- */
- @property (nonatomic) CGFloat right;
- /**
- * 1.添加边框
- *
- * @param color <#color description#>
- */
- - (void)addBorderColor:(UIColor *)color;
- /**
- * 2.UIView 的点击事件
- *
- * @param target 目标
- * @param action 事件
- */
- - (void)addTarget:(id)target
- action:(SEL)action;
- @end
|