Skip to content

Commit 46c7fb5

Browse files
committed
improved compatibility
1 parent 36c5666 commit 46c7fb5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

YYWebImage/Image/YYAnimatedImageView.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,13 @@ - (instancetype)init {
197197
return self;
198198
}
199199

200+
- (instancetype)initWithFrame:(CGRect)frame {
201+
self = [super initWithFrame:frame];
202+
_runloopMode = NSRunLoopCommonModes;
203+
_autoPlayAnimatedImage = YES;
204+
return self;
205+
}
206+
200207
- (instancetype)initWithImage:(UIImage *)image {
201208
self = [super init];
202209
_runloopMode = NSRunLoopCommonModes;

0 commit comments

Comments
 (0)