text: //
  //  UIView+Addition.h
  //  Douya4iPhone
  //
  //  Created by huang wei on 12-9-4.
  //  Copyright (c) 2012年 idea think. All rights reserved.
  //
  
  #import <UIKit/UIKit.h>
  
  @interface UIView (Addition)
  
  /**
   * Shortcut for frame.origin.x.
   *
   * Sets frame.origin.x = left
   */
  @property (nonatomic) CGFloat left;
  
  /**
   * Shortcut for frame.origin.y
   *
   * Sets frame.origin.y = top
   */
  @property (nonatomic) CGFloat top;
  
  /**
   * Shortcut for frame.origin.x + frame.size.width
   *
   * Sets frame.origin.x = right - frame.size.width
   */
  @property (nonatomic) CGFloat right;
  
  /**
   * Shortcut for frame.origin.y + frame.size.height
   *
   * Sets frame.origin.y = bottom - frame.size.height
   */
  @property (nonatomic) CGFloat bottom;
  
  /**
   * Shortcut for frame.size.width
   *
   * Sets frame.size.width = width
   */
  @property (nonatomic) CGFloat width;
  
  /**
   * Shortcut for frame.size.height
   *
   * Sets frame.size.height = height
   */
  @property (nonatomic) CGFloat height;
  
  /**
   * Shortcut for center.x
   *
   * Sets center.x = centerX
   */
  @property (nonatomic) CGFloat centerX;
  
  /**
   * Shortcut for center.y
   *
   * Sets center.y = centerY
   */
  @property (nonatomic) CGFloat centerY;
  /**
   * Shortcut for frame.origin
   */
  @property (nonatomic) CGPoint origin;
  
  /**
   * Shortcut for frame.size
   */
  @property (nonatomic) CGSize size;
  
  /**
   *  Shortcut for right to superview
   *  Sets frame.origin.x = superview.width - rightToSuper -frame.size.width
   */
  @property (nonatomic) CGFloat rightToSuper;
  
  /**
   *  shortcut for bottom to superview
   *  set frame.origin.y = superview.height - bottomToSuper - frame.size.height
   */
  @property (nonatomic) CGFloat bottomToSuper;
  
  
  /**
   * Removes all subviews.
   */
  - (void)removeAllSubviews;
  
  /*取消阴影*/
  - (void)hideShadow;
  
  /*设置阴影*/
  - (void)shadowColor:(UIColor*)color shadowOffset:(CGSize)offset shadowRadius:(CGFloat)radius shadowOpacity:(CGFloat)opacity;
  
  /**
   设置圆角和边共存
  
   @param corners 位置
   @param width 边宽
   @param radii 角度
   @param color 边的颜色
   */
  - (void)addRoundedCornersBorder:(UIRectCorner)corners borderWidth:(CGFloat)width withRadii:(CGSize)radii borderColor:(UIColor *)color;
  
  /*设置圆角*/
  - (void)cornerRadius:(CGFloat)radius borderWidth:(CGFloat)width borderColor:(UIColor *)color;
  
  /*设置部分圆角*/
  - (void)addRoundedCorners:(UIRectCorner)corners
                  withRadii:(CGSize)radii;
  
  /*既有圆角又有阴影*/
  - (void)shadowColor:(UIColor *)shadowColor shadowOffset:(CGSize)offset shadowRadius:(CGFloat)sradius shadowOpacity:(CGFloat)opacity
  	   cornerRadius:(CGFloat)cradius borderWidth:(CGFloat)width borderColor:(UIColor *)borderColor;
  
  - (void)shake;
  
  - (void)doHide;
  
  @end
  