ソースを参照

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;
     return self;
 }
 }
 
 
+- (instancetype)initWithFrame:(CGRect)frame {
+    self = [super initWithFrame:frame];
+    _runloopMode = NSRunLoopCommonModes;
+    _autoPlayAnimatedImage = YES;
+    return self;
+}
+
 - (instancetype)initWithImage:(UIImage *)image {
 - (instancetype)initWithImage:(UIImage *)image {
     self = [super init];
     self = [super init];
     _runloopMode = NSRunLoopCommonModes;
     _runloopMode = NSRunLoopCommonModes;