D
D
doublench212017-11-14 16:18:17
iOS
doublench21, 2017-11-14 16:18:17

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 UITableViewwith the ability to return to the previous data. VCIt 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

1 answer(s)
M
Maxim Globak, 2017-11-15
@doublench21

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 question

Ask a Question

731 491 924 answers to any question