Adding Cells To TableView from another View

Hi everyone,

I’m creating an app that allows users to post ads. I was planning on using a UIAlert box as a way for users to populate the main tableView, but I’m not sure this is the best way to do it.

Does anyone have any recommendations on the best way to add new cells to a table view? Ideally, I’d like the user to click an ‘Add’ button, which will open a new View where they can enter the title and details of the post which will then update the tableView with a new cell.

I’m new to Swift so any help and resources would be a great help.


if the info is basic enough a pop-up should do

it doesn’t matter if you use a pop-up or a new window its just up to you, although recently i think pop-ups are the way to go

1 Like