YYImage icon indicating copy to clipboard operation
YYImage copied to clipboard

Use NSKeyedArchiver archiver YYAnimatedImageView have bug

Open xavier-lmk opened this issue 8 years ago • 0 comments

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

xavier-lmk avatar Nov 02 '16 10:11 xavier-lmk