故事板中的设置:
NavigationController>> AViewController>> BViewController
我正在使用ECSlidingViewController 2.0
,我想删除BViewController
的panGesture,我将代码放在BViewController
-(void)viewWillAppear
下。但AVideController
也删除了panGesture。我做错了吗?
[self.navigationController.view removeGestureRecognizer:self.slidingViewController.panGesture];
答案 0 :(得分:0)
试试这个:
[self.view removeGestureRecognizer:self.slidingViewController.panGesture];
希望这会有所帮助.. :)