Save View Controller into Table

I’m struggling to find this on the internet but I know it’s a basic function so it’s starting to confuse me!

I have a View Controller and a Table View Controller. On the View Controller is 4 Text Views that a user fills in. When they click save I want what they’ve typed into the View Controller to appear as a cell in my Table View.

I was wondering if someone could point me in the right direction for what I need to search on Google?

Hi Tom,

The way I would go about this is to save the data the user enters into an array and that array is what feeds the tableView.

After the textFields are populated in your ViewController, tapping on the save button would append those items to the array and then you would instantiate your Table View Controller and pass that array forward as a parameter to that Table View Controller before presenting it.

1 Like