text: //
  //  UIView+Extend.h
  //  LJShop
  //
  //  Created by 蒋林 on 16/4/4.
  //  Copyright © 2016年 Jalen. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  
  #define CustomViewTranslate(ViewClass,view) (ViewClass *)view;
  
  typedef enum{
      //上
      UIViewBorderDirectTop = 0,
      //左
      UIViewBorderDirectLeft,
      //下
      UIViewBorderDirectBottom,
      //右
      UIViewBorderDirectRight,
  }UIViewBorderDirect;
  
  
  @interface UIView (Extend)
  
  @property (nonatomic, assign) CGFloat x;
  @property (nonatomic, assign) CGFloat y;
  @property (nonatomic, assign) CGFloat width;
  @property (nonatomic, assign) CGFloat height;
  @property (nonatomic, assign) CGSize size;
  @property (nonatomic, assign) CGPoint origin;
  @property (nonatomic, assign) CGFloat radius;
  
  
  
  
  /**
   *  添加边框：注给scrollView添加会出错
   *
   *  @param direct 方向
   *  @param color  颜色
   *  @param width  线宽
   */
  - (void)addSingleBorder:(UIViewBorderDirect)direct color:(UIColor *)color width:(CGFloat)width;
  
  
  /** 自动从xib创建视图 */
  + (instancetype)viewFromXIB;
  
  /** 添加一组子view */
  - (void)addSubviewsWithArray:(NSArray *)subViews;
  
  /** 添加边框:四边 */
  - (void)setBorder:(UIColor *)color width:(CGFloat)width;
  
  /** 调试 */
  - (void)debug:(UIColor *)color width:(CGFloat)width;
  
  
  /**
   *  批量移除视图
   *
   *  @param views 需要移除的视图数组
   */
  + (void)removeViews:(NSArray *)views;
  
  @end
  