I am building an app using storyboard. I have added a table view to my view controller, chose static cells, and custom, insertea a title and some pictures. I have also linked each row to a view controller, with modal segue. But I want to be able to add, delete, and reorder the rows. So I added the codes. The only thing is that I can not connect the table view to the codes. If I connect the data source, and run the project I see just an empty table view. So, is there a way to create the table view using interface builder, and just a few codes? otherwise if there are to much codes everything gets messed up.
Share
Connect
delegateanddatasourcetoViewControllericon in your Storyboard. Then addUITableviewdelegateandUITableviewdatasourcein view controller code. When you connect and do this, then tableview will search its delegate and datasource methods in your code and you will get the output which you expect.