.../YYKit/YYKit/Image/YYAnimatedImageView.m:147:5: Call to 'dispatch_once' uses the instance variable '_onceToken' for the predicate value. Using such transient memory for the predicate is potentially dangerous.
查阅dispatch_once函数文档,对于predicate,文档有如下说明:The predicate must point to a variable stored in global or static scope. The result of using a predicate with automatic or dynamic storage (including Objective-C instance variables) is undefined.
.../YYKit/YYKit/Image/YYAnimatedImageView.m:147:5: Call to 'dispatch_once' uses the instance variable '_onceToken' for the predicate value. Using such transient memory for the predicate is potentially dangerous.
查阅dispatch_once函数文档,对于predicate,文档有如下说明:The predicate must point to a variable stored in global or static scope. The result of using a predicate with automatic or dynamic storage (including Objective-C instance variables) is undefined.