在DeckView示例中将右视图移动到中心视图上

时间:2015-10-15 08:37:36

标签: ios objective-c iphone

如何在ViewDeck示例中将右视图控制器移动到中央控制器上。现在中央控制器与右视图一起移动,这一定不会发生。任何人都可以帮我解决这个问题。

leftMenuView = [sb instantiateViewControllerWithIdentifier:@" LeftMenu"];

rightMenuView = [sb instantiateViewControllerWithIdentifier:@"MenuView"];
centerController = [sb instantiateViewControllerWithIdentifier:@"MainPage"];
navCtr = [sb instantiateViewControllerWithIdentifier:@"NavigationController"];

mainController = [sb instantiateViewControllerWithIdentifier:@"MainView"];

navCtr = [[UINavigationController alloc] initWithRootViewController:mainController];

[centerController.view addSubview:navCtr.view];

self.deckController = [[IIViewDeckController alloc] initWithCenterViewController:centerController                                                                  leftViewController:leftMenuView                                                                   rightViewController:rightMenuView];

self.deckController.rightSize = 50;  self.deckController.leftSize = 50;

1 个答案:

答案 0 :(得分:0)

目前在ViewDeck中无法在中心视图控制器上移动侧视图控制器。如果这是您想要的功能,我建议您为此功能请求添加+1:https://github.com/ViewDeck/ViewDeck/issues/471