From the course: iOS Development Tips

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Embed table views

Embed table views

- [Instructor] Here's an app I started for the downloaded example file. It's a restaurant check with a total. But I have to press this order button to see the details in the table view on the next controller. That button is a waste of real estate. And it would be nice to see the details of the controller on this page. There's a simple technique to do just that. I'll stop the app and head over to the storyboard here. And I'll zoom out a little bit so I can see what I'm doing. You'll see I have a segue from the button to the table view. And I'm gonna go ahead and delete that. And I'm gonna delete the button. Go over to the object library. And we're gonna use something new here. And I'm gonna zoom back over to this. And go to container view. And I'm gonna use a container view here. I'm gonna drop it in. This view allows you to embed a view controller into the current view controller, or what's known as a child's view controller. Once I've dragged it out, you'll see I've got another…

Contents