如何替换故事板segue

时间:2013-03-21 13:57:21

标签: ios objective-c storyboard

我对故事板感到困惑。我的故事板是这样的:

screen shot of storyboard

现在我想更改“Tab Bar Controller”和“Main Scroll View”之间的链接。相反,我想把白色的“视图控制器”放在“视图控制器”上,我想放置一个按钮,当你点击按钮时,它会进入“主滚动视图”。我怎样才能在故事板中做到这一点?

1 个答案:

答案 0 :(得分:0)

删除segue。将navigationController拖到storyboard中,并将该视图替换为tabBarViewController中的当前mainScrollView。当你拖动一个nvigationController时,它会将一个viewController作为rootView拉出来。删除它。按住Control键并从新导航控制器拖动到白色viewController,然后选择“根视图”。将按钮放在白色viewController中。按住Control键并从按钮拖动到mainScrollViewController,然后选择“push”。