SNKNinePatchImageView.h 657 B

123456789101112131415161718192021222324
  1. //
  2. // SNKNinePatchImageView.h
  3. // TestImageResible
  4. //
  5. // Created by tu jinqiu on 2018/11/7.
  6. // Copyright © 2018年 tu jinqiu. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "SNKNinePatchImage.h"
  10. @interface SNKNinePatchImageView : UIImageView
  11. @property(nonatomic, strong) SNKNinePatchImage *ninePatchImage;
  12. @property(nonatomic, assign) NSInteger imageScale;
  13. // 应当使用如下的方法给 SNKNinePatchImageView 添加约束
  14. // paddingView 和 SNKNinePatchImageView 应该公有一个父 view
  15. // 不要在外部添加约束
  16. - (void)addConstraintsWithPaddingView:(UIView *)paddingView;
  17. - (void)setImageWithUrlStr:(NSString *)urlStr;
  18. @end