Fix accessibleElements warning in _ASDisplayView (#2100)

This commit is contained in:
Michael Schneider 2016-08-18 13:12:19 -07:00 committed by Adlai Holler
parent 85f2a2a128
commit c409e79714
3 changed files with 7 additions and 5 deletions

View File

@ -16,8 +16,6 @@
@interface _ASDisplayView : UIView
@property (copy, nonatomic) NSArray *accessibleElements;
// These methods expose a way for ASDisplayNode touch events to let the view call super touch events
// Some UIKit mechanisms, like UITableView and UICollectionView selection handling, require this to work
- (void)__forwardTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event;

View File

@ -9,6 +9,7 @@
//
#import "_ASDisplayView.h"
#import "_ASDisplayViewAccessiblity.h"
#import "_ASCoreAnimationExtras.h"
#import "ASDisplayNodeInternal.h"
@ -34,7 +35,6 @@
CGRect _lastAccessibleElementsFrame;
}
@synthesize accessibleElements = _accessibleElements;
@synthesize asyncdisplaykit_node = _node;
+ (Class)layerClass
@ -165,7 +165,7 @@
[super addSubview:view];
#ifndef ASDK_ACCESSIBILITY_DISABLE
[self setAccessibleElements:nil];
self.accessibleElements = nil;
#endif
}
@ -174,7 +174,7 @@
[super willRemoveSubview:subview];
#ifndef ASDK_ACCESSIBILITY_DISABLE
[self setAccessibleElements:nil];
self.accessibleElements = nil;
#endif
}

View File

@ -9,3 +9,7 @@
//
#import <Foundation/Foundation.h>
@interface _ASDisplayView (UIAccessibilityContainer)
@property (copy, nonatomic) NSArray *accessibleElements;
@end