The question arises whether it is possible to use a list (tableViewController) for example for different cells, different ViewControllers do not create cell types, for example, if they are all the same, for example 1 goes one controller for the second another, for the third the third, etc. or how can I use a variety of elements for a variety of controllers?

This is necessary for an example of using different elements in the system, and they need different controllers.

  • only I do not understand? - Andrey Chernukha
  • there is a controller, there is a list in it, I need each cell to be responsible for its controller in a storyboard, it is possible to do something like this, or there everything is tied to a segue or you need to make a separate cell for each controller. Here is a photo of radikal.ru/lfp/s019.radikal.ru/i624/1609/63/ce051750af54.png/… - jcmax
  • that is, clicking on a tableview cell should open the corresponding viewController? - Max Mikheyenko
  • one
    in a nutshell, if you roughly have three views for which you need to go, then do with TableVIewController seque (transitions) to these three screens. And give each seque a different identifier. Then in the didSelectRowAtIndexPath method, track the cell you need and set the transition to it by identifier. - Kerim Khasbulatov
  • Ok, I'll try this case - jcmax

0