简体   繁体   中英

Change initial view controller for target

I have a big Xcode iOS project.

This project contains multiple screens and starts on a debuging menu (View Controller).

What I want to do is to create a second target in my project.

With this target, I want to start to another ViewController.

Is there a way in the storyboard to set another initial view controller checkbox, but only for a target.

I think you need to create different ViewController for each target selection. You can select target membership for different VCs

See below picture, it might help you to find out target selection in VC

在此处输入图片说明

i have not tried this. But i found a similar question on stackflow. This might help you : Is it possible to change 'is initial view controller' based upon Target?

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