[英]How to manage multiple UIViewController from one Container?
我有一個UIViewController
里面有一個容器。 我希望能夠更改該Container中的UIViewController
。 我想我可以管理Segue調用來實現這一點,但是如何使用UIBUilder在Storyboard上連接多個UIViewController
對象(及其相關的Segues)呢?
在這里,您可以看到我的基本布局,並將一個UIViewController
附加到了Container。 現在,我想以相同的方式將第二個附加到故事板上,並通過代碼進行管理。
RowViewController *infoController = [self.storyboard instantiateViewControllerWithIdentifier:@"RowViewController"];
[self addChildViewController:infoController];
infoController.view.frame = CGRectMake(0, 86, 745, 682);
[self.view addSubview:infoController.view];
[infoController didMoveToParentViewController:self];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.