I have 6 buttons in a View (ViewOne). Every button should show a tableView on the same View.(the buttons should not disappear and the table view should appear on the remaining view)
so far i have taken one view controller (ViewTwo for Button1) and pushing the view with required data by using
[self.view addSubview:ViewTwo.view];
As the data in the tableView varies,Should i take 6 ViewControllers for each tableView or is there any other easy achieve to do it??
You can use one UITableView instead of 6 different viewControllers. and try reloadData property of tableView with Button Press event.