Answer the question
In order to leave comments, you need to log in
Transitions from rows in UITableView to other data within the same VC?
There is some data output in UITableView
. By clicking on any line in this view, you need to go to other data displayed also in UITableView
with the ability to return to the previous data. VC
It seems irrational to create separate ones with transitions to them for this . Are there any other approaches within one VC
?
Answer the question
In order to leave comments, you need to log in
There is a rule - divide and conquer =) (S in SOLID)
Adhering to this rule, the project will be cleaner than those who do not.
At first, it always seems that a separate VC is not needed for this, but often the logic later starts to get more complicated and differ from what it was on the first screen. Therefore, I advise you to split it into two screens and you will have a free hand for further changes, and the code in one VC will be cleaner.
And saving memory, in this case, will be minimal.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question