如何在ViewDeck示例中將右視圖控制器移到中心控制器上。現在中心控制器與正確的視圖一起移動,這一定不會發生。請任何人都可以幫助我解決這個問題。在DeckView的中心視圖上移動右視圖示例
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;
您可以發佈您嘗試過的內容嗎? –