I'm new to iOS and storyboard, and I need advice on possible ways to design the architecture of a new application. I will have some data stored in the database, and I will have a UIViewController page with several buttons that have some names of some categories. When you can click All or click Business, it will display the data according to this category in the UITableViewController.
Now I am confused on one side:
Is it allowed to create several segments from different buttons in the bulletin board into the same ViewController class? So if this is not allowed, do I need to create 6 different UITableViewController classes to make segues for 6 categories?
And if it is allowed to do segues from several buttons to one UIViewController, how can I send the parameter to the storyboard so that it understands that I pressed a specific button to go to the UIViewController.
Should I create a custom constructor in a UITableViewController that takes a parameter, and I initialize this constructor from other button click methods? To display results in terms of category? Or is there a way to storyboard make it easier?
source share