I am having a SampleViewController in which a segmentedControl is added at the top below nav bar(not inside it).Now below the segmentedControl i want a tableView which loads from another class CommonTableViewController. When a segment is tapped the a new tableView from same CommonTableViewController should be loaded. How can it be done?
thanks in advance.
I am having a SampleViewController in which a segmentedControl is added at the top
Share
I use an array to populate my tableView…
In my segmentedControlClicked method… I change the data in the array based on which segment was selected and then use this line of code: