简体   繁体   中英

How to replace storyboard segue

I'm kinda confused with the storyboards. I've got my storyboard like this:

分镜脚本的屏幕截图

Now I want to change the link between "Tab Bar Controller" and "Main Scroll View". Instead I want to put the white "View Controller" and on the "View Controller" I want to place a button and when you click on the button it gets to the "Main Scroll View". How can I do this in the storyboard?

Delete the segue. Drag a navigationController into storyboard, and make that the view that replaces your current mainScrollView in your tabBarViewController. When you drag a nvigationController in, it will pull a viewController with it as a rootView. Delete that. Control-click and drag from the new navigation controller to your white viewController, and select "root view". Place the button in your white viewController. Control-click and drag from the button to the mainScrollViewController, and select "push".

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM