Răsfoiți Sursa

improved compatibility

ibireme 9 ani în urmă
părinte
comite
46c7fb5814
1 a modificat fișierele cu 7 adăugiri și 0 ștergeri
  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;