YYImage
YYImage copied to clipboard
Use NSKeyedArchiver archiver YYAnimatedImageView have bug
If use NSKeyedArchiver archive YYAnimatedImageView that include animated GIF, and then unarchive and add as subview in another view. It will not play the animation.
I found that add [_runloopMode isEqual:NSRunLoopCommonModes] in
YYAnimatedImageView.m line: 543
if (_runloopMode.length == 0) _runloopMode = NSRunLoopCommonModes;
if (_runloopMode.length == 0 || [_runloopMode isEqual:NSRunLoopCommonModes]) _runloopMode = NSRunLoopCommonModes;
will solve the problem