MTBaseImageView.m 562 B

123456789101112131415161718192021222324
  1. //
  2. // MTBaseImageView.m
  3. //
  4. // Created by Simon on 2019/3/22.
  5. // Copyright © 2019 Simon. All rights reserved.
  6. //
  7. #import "MTBaseImageView.h"
  8. @implementation MTBaseImageView
  9. +(MTBaseImageView *)imageViewWithFrame:(CGRect)rect image:(UIImage *)image{
  10. MTBaseImageView*imageView = [MTBaseImageView new];
  11. imageView.image = image;
  12. return imageView;
  13. }
  14. /*
  15. // Only override drawRect: if you perform custom drawing.
  16. // An empty implementation adversely affects performance during animation.
  17. - (void)drawRect:(CGRect)rect {
  18. // Drawing code
  19. }
  20. */
  21. @end