'how to populate tableview based on button press- swift

enter image description here

I have two buttons scheduled shoots and completed shoots and a table view under it.I can't use segment control here.when I press first button a tableview should fill with a data.when I press second button tableview should populate with different data. how can I achieve this. I'm new to iOS how to solve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source