iOS:UIImageView resize when one dimension is just or most,anothor is fit.

This commit is contained in:
pengfei.zhou
2020-04-03 17:58:47 +08:00
committed by osborn
parent 870a7e74af
commit 2e0bbcfb89
2 changed files with 17 additions and 7 deletions

View File

@@ -21,17 +21,14 @@
//
#import "DoricImageNode.h"
#import "Doric.h"
#import "YYWebImage.h"
#import "DoricExtensions.h"
#import "DoricUtil.h"
@interface DoricImageView : YYAnimatedImageView
@end
@implementation DoricImageView
- (CGSize)sizeThatFits:(CGSize)size {
return [self sizeThatFits:size];
}
@end
@interface DoricImageNode ()