iOS AILinkBleSDK - 蓝牙SDK
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UIView+Category.h 837B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // UIView+Category.h
  3. // GoodNutrition
  4. //
  5. // Created by iot_user on 2018/10/23.
  6. // Copyright © 2018年 Percyyang. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface UIView (Category)
  11. @property (nonatomic, assign) CGFloat x;
  12. @property (nonatomic, assign) CGFloat y;
  13. @property (nonatomic, assign) CGFloat width;
  14. @property (nonatomic, assign) CGFloat height;
  15. @property (nonatomic, assign) CGSize size;
  16. /**
  17. 给View 添加圆角
  18. @param cornerRadii cornerRadii
  19. @param corner cornerRadii
  20. */
  21. -(void)setCornerRadii:(CGSize)cornerRadii withCorner:(UIRectCorner)corner;
  22. //
  23. - (void)setViewLayerCornerRadius:(CGFloat)cornerRadius shadowOffset:(CGSize)shadowOffset shadowOpacity:(CGFloat)shadowOpacity shadowRadius:(CGFloat)shadowRadius shadowColor:(UIColor *)shadowColor;
  24. @end
  25. NS_ASSUME_NONNULL_END