123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- //
- // UIView+LBExtension.h
- // XianYu
- //
- // Created by li bo on 16/5/28.
- // Copyright © 2016年 li bo. All rights reserved.
- //
- #import <UIKit/UIKit.h>
- IB_DESIGNABLE
- @interface UIView (JZExtension)
- @property (nonatomic, assign)CGFloat x;
- @property (nonatomic, assign)CGFloat y;
- @property (nonatomic, assign)CGFloat width;
- @property (nonatomic, assign)CGFloat height;
- @property (nonatomic, assign)CGFloat centerX;
- @property (nonatomic, assign)CGFloat centerY;
- @property (nonatomic, assign)CGSize size;
- @property (nonatomic, assign)CGFloat bottom;
- @property (nonatomic, assign) CGFloat right;
- @property(nonatomic, assign) IBInspectable CGFloat borderWidth;
- @property(nonatomic, assign) IBInspectable UIColor *borderColor;
- @property(nonatomic, assign) IBInspectable CGFloat cornerRadius;
- /**
- * 水平居中
- */
- - (void)alignHorizontal;
- /**
- * 垂直居中
- */
- - (void)alignVertical;
- /**
- * 判断是否显示在主窗口上面
- *
- * @return 是否
- */
- - (BOOL)isShowOnWindow;
- - (UIViewController *)parentController;
- - (void)addCornerRadiusByRoundingCorners:(UIRectCorner)corners cornerRadii:(CGSize)cornerRadii;
- // 弹窗的缩放动画
- - (void)addKeyAnimation;
- @end
|