我正在使用ECSlidingViewController v2构建一个新项目。我第一次滑动打开左侧视野,效果很好。但是当我第二次刷卡时,我得到一个EXC_BAD_ACCESS崩溃。引用是控制器中的NSMapTable。
- (void)updateTopViewGestures {
BOOL topViewIsAnchored = self.currentTopViewPosition == ECSlidingViewControllerTopViewPositionAnchoredLeft ||
self.currentTopViewPosition == ECSlidingViewControllerTopViewPositionAnchoredRight;
UIView *topView = self.topViewController.view;
if (topViewIsAnchored) {
...
} else {
...
---> [self.customAnchoredGesturesViewMap removeAllObjects];
}
}