I am writing an iPhone app that is supposed to create a TableView with 5 buttons. Each button is supposed to open up a different TableView.
I am using storyboards for my application, and the storyboard view controller shows only one button, so how can I link each button in my app to a separate detailviewcontroller?
Thanks!
If you want each button to trigger different controller than you have to create 5 seque with different destination controller and than when button is tapped , use following function to show different controller.
Give each seque a different identifier and based on which button is tapped ( can be check using button tag) perform different seque and hence show different controller…
To pass data between viewController which is a common task, i am surprised you have not done it before :
goto this link .