I'm new in iOS development. I hope to get help and also apologize if my question is too basic.
I'm just getting used to UITableViewController
and Delegate, DataSource.
I have the FirstViewController
like the photo
When user touch inside the segmentedController the TableViewCell will reload data to show the movies are showing and upcoming movies(Just a simple movie booking seats app for my learning purpose).
I see a problem with segues to multiple views.
When user select the cell.
How can I assign the identifier for each reload data so that when I click on the cell, the data is passed to another ViewController(E.g: DetailViewUpcoming
and DetailViewShowing
). Here I have two other viewcontroller to record detailed information about upcoming movies and showing movie s.(image, name, date, and reverse button....etc)
I just need help with ideas if possible. Or code description is very good. Although I tried to implement segue in function: tableview (_tableView: UITableView, didSelectRowAt indexPath: IndexPath) but my program did not execute as expected. Because I have trouble with segmentedControll (I thin the problem is here)
I have read this post before
Thank you for all
tableview (_tableView: UITableView, didSelectRowAt indexPath: IndexPath)
you check if you're in first or second segment. – DionizB