简体   繁体   中英

How do I transition from a UIView to a UITableViewController using an IBAction in xcode?

I built my app as a single view application and then later added another view with an .xib. I get how to do that. But what I need to do now is add another view, but this is a UITableViewController that uses storyboards. I am adding IAP from a tutorial I used that uses a MasterViewController and automatically loads the first view, but I didn't make my app that way.

If anyone can explain how I can make it so when you click a button (IBAction) on my original view, I can transition to the UITableViewController that use storyboards that has the table for my IAP, that would be awesome. Is this even possible? If there's another way I'm cool with that too! BTW I am very new to this so please explain in simple terms if possible. So if anyone ca help it would be greatly appreciated.

Put a button on the first form, hold down CTRL and drag the mouse and point to the other form and it will create a segue. You can set the type (push, modal, etc.)

Watch the WWDC session from 2011 introducing Storyboards. Worthwhile.

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