猎豆优选

UIView+DCRolling.h 950B

12345678910111213141516171819202122232425262728
  1. #import <UIKit/UIKit.h>
  2. @interface UIView (DCRolling)
  3. @property (nonatomic , assign) CGFloat dc_width;
  4. @property (nonatomic , assign) CGFloat dc_height;
  5. @property (nonatomic , assign) CGSize dc_size;
  6. @property (nonatomic , assign) CGFloat dc_x;
  7. @property (nonatomic , assign) CGFloat dc_y;
  8. @property (nonatomic , assign) CGPoint dc_origin;
  9. @property (nonatomic , assign) CGFloat dc_centerX;
  10. @property (nonatomic , assign) CGFloat dc_centerY;
  11. @property (nonatomic , assign) CGFloat dc_right;
  12. @property (nonatomic , assign) CGFloat dc_bottom;
  13. - (BOOL)intersectWithView:(UIView *)view;
  14. + (instancetype)dc_viewFromXib;
  15. - (BOOL)isShowingOnKeyWindow;
  16. - (CGSize)labelAutoCalculateRectWith:(NSString *)text FontSize:(CGFloat)fontSize MaxSize:(CGSize)maxSize;
  17. - (id)dc_chageControlCircularWith:(id)anyControl AndSetCornerRadius:(NSInteger)radius SetBorderWidth:(NSInteger)width SetBorderColor:(UIColor *)borderColor canMasksToBounds:(BOOL)can;
  18. @end