fixed typo and added backwards compatibility for 'visibilityDidChange'

This commit is contained in:
Luke Parham
2016-06-06 02:02:23 -05:00
parent e510120031
commit fc5467b110
12 changed files with 39 additions and 31 deletions

View File

@@ -240,10 +240,17 @@ NS_ASSUME_NONNULL_BEGIN
*
* @discussion Subclasses may use this to monitor when they become visible.
*/
- (void)visibileStateDidChange:(BOOL)isVisible ASDISPLAYNODE_REQUIRES_SUPER;
- (void)visibilityDidChange:(BOOL)isVisible ASDISPLAYNODE_REQUIRES_SUPER;
/**
* @abstract Called whenever the the node has entered or left the display state.
* @abstract Called whenever the visiblity of the node changed.
*
* @discussion Subclasses may use this to monitor when they become visible.
*/
- (void)visibleStateDidChange:(BOOL)isVisible ASDISPLAYNODE_REQUIRES_SUPER;
/**
* @abstract Called whenever the the node has entered or exited the display state.
*
* @discussion Subclasses may use this to monitor when a node should be rendering its content.
*