소스 검색

improved compatibility

ibireme 9 년 전
부모
커밋
46c7fb5814
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      YYWebImage/Image/YYAnimatedImageView.m

+ 7 - 0
YYWebImage/Image/YYAnimatedImageView.m

@@ -197,6 +197,13 @@ typedef NS_ENUM(NSUInteger, YYAnimagedImageType) {
     return self;
 }
 
+- (instancetype)initWithFrame:(CGRect)frame {
+    self = [super initWithFrame:frame];
+    _runloopMode = NSRunLoopCommonModes;
+    _autoPlayAnimatedImage = YES;
+    return self;
+}
+
 - (instancetype)initWithImage:(UIImage *)image {
     self = [super init];
     _runloopMode = NSRunLoopCommonModes;