简体   繁体   中英

XIB to Storyboard

I have been making an app using a .xib file, but have decided to switch to a storyboard. I copied the view from the xib and pasted it the storyboard. I tried to remake the connections but the only outlet available was the view one. What do I need to change to get this to work?

In Storyboard you don't ned to get concerned with making connections. The connections are being performed automatically by XCODE.

Go to the project navigator and select the topmost Simple Storyboard item, which represents the project itself. Make sure the Simple Storyboard target is also selected, along with the Summary tab at the top, and look for the iPhone / iPod Deployment Info section, where you'll see that MainStoryboard is configured as the Main Storyboard.

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