mirror of
https://github.com/HackPlan/AsyncDisplayKit.git
synced 2026-03-29 16:48:59 +08:00
[ASMapNode] Defaulting userInteractionEnabled to YES.
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
}
|
||||
self.backgroundColor = ASDisplayNodeDefaultPlaceholderColor();
|
||||
self.clipsToBounds = YES;
|
||||
self.userInteractionEnabled = YES;
|
||||
|
||||
_needsMapReloadOnBoundsChange = YES;
|
||||
_liveMap = NO;
|
||||
@@ -257,7 +258,6 @@
|
||||
- (void)addLiveMap
|
||||
{
|
||||
ASDisplayNodeAssertMainThread();
|
||||
self.userInteractionEnabled = YES;
|
||||
if (!_mapView) {
|
||||
__weak ASMapNode *weakSelf = self;
|
||||
_mapView = [[MKMapView alloc] initWithFrame:CGRectZero];
|
||||
@@ -276,7 +276,6 @@
|
||||
|
||||
- (void)removeLiveMap
|
||||
{
|
||||
self.userInteractionEnabled = NO;
|
||||
[_mapView removeFromSuperview];
|
||||
_mapView = nil;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user