Answer the question
In order to leave comments, you need to log in
How to make transition from TableView cell to different View Controller?
I'm learning Swift. As a "learning project" I decided to write a "textbook" application, of course, the textbook has its own chapters and a lot of text. The chapters are shown through the TableView and I would like to translate the person to the text of the corresponding chapter by clicking on the cells.
The text, I thought, would be easiest to arrange through the Storyboard in different View Controllers, because illustrations of other dirty tricks are supposed to be added to the text.
The question is probably an easy one: how to transfer a person to different ViewControllers by clicking on different TableView cells?
Thank you all very much for your replies.
Answer the question
In order to leave comments, you need to log in
1) If this is a tutorial, then all the chapters will be the same controller, just with different settings.
2) As an option, use:
- tableView:didSelectRowAtIndexPath:
and
- pushViewController:animated:
More details in the documentation.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question