我目前正在使用该ECSlidingViewController
示例,并且在打开我当前所在的同一视图时遇到了一个小错误。
例如,如果我在里面GudjonDaneil
,我打开“抽屉”并GudjonDaniel
再次点击 viewDidLoad 方法调用两次,如果我再次打开它,它会连续调用 viewDidLoad 3 次。看起来视图是相互堆叠的。一旦我再次打开视图,我需要以某种方式杀死类(视图)。
这是单击后会发生的情况-UItableView
NSLog(@"Channel 1 Loading");
tableViewCellLoading = true;
[self.slidingViewController anchorTopViewOffScreenTo:ECRight animations:nil onComplete:^{
CGRect frame = self.slidingViewController.topViewController.view.frame;
self.slidingViewController.topViewController = [self.storyboard instantiateViewControllerWithIdentifier:@"firstChannel"];
self.slidingViewController.topViewController.view.frame = frame;
[self.slidingViewController resetTopView];
[tableView deselectRowAtIndexPath:indexPath animated:YES]; }];
抽屉应用程序的外观