Move dealloc method from ASImageNode+AnimatedImage category to ASImageNode

Having a dealloc method in a category can be very problematic as the superclass dealloc method will not be called in case it exists.
This commit is contained in:
Michael Schneider
2016-07-08 14:41:19 -07:00
parent ac9549ee89
commit b2810edb0f
3 changed files with 18 additions and 1 deletions

View File

@@ -31,3 +31,10 @@ extern NSString *const ASAnimatedImageDefaultRunLoopMode;
@property (atomic, assign) CFTimeInterval lastDisplayLinkFire;
@end
@interface ASImageNode (AnimatedImageInvalidation)
- (void)invalidateAnimatedImage;
@end