Skip to content

Commit

Permalink
improved compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
ibireme committed Nov 25, 2015
1 parent f167d3f commit 9489151
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions YYKit/Image/YYAnimatedImageView.m
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,13 @@ - (instancetype)init {
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;
Expand Down

0 comments on commit 9489151

Please sign in to comment.