|
@@ -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;
|