请在我的项目中帮助我。我正在使用IIViewDeckController
,但当被视图控制器推送时它不起作用
继承人的层次结构:
ViewController
(推)----> IIViewDeckController
(左视图和中心视图)。
这是我初始化 IIViewDeckController 时的代码:
- (IIViewDeckController*)generateControllerStack{
self.navigationView = [[NavigationViewController alloc] initWithNibName:@"NavigationViewController" bundle:nil];
self.profileView = [[ProfileViewController alloc] initWithNibName:@"ProfileViewController" bundle:nil];
UINavigationController* navC = [[UINavigationController alloc] initWithRootViewController:self.profileView];
IIViewDeckController *deckView = [[IIViewDeckController alloc] initWithCenterViewController:navC leftViewController:self.navigationView rightViewController:nil];
deckView.leftSize = 50;
[deckView disablePanOverViewsOfClass:NSClassFromString(@"_UITableViewHeaderFooterContentView")];
return deckView;
}
那么这是我使用另一个 ViewController 推送 IIViewDeckController 时的代码
- (IBAction)signInAction:(id)sender {
IIViewDeckController *deckView = [[UIManager sharedItems] generateControllerStack];
[self.navigationController pushViewController:deckView animated:YES];
}
非常感谢你们:)
当我单击登录时,我将使用左视图和中视图推送我的 iiviewdeckcontroller,这会出现