Swift, creating views with table view controller

by MarkwinVI   Last Updated July 12, 2019 15:05 PM

Im not sure if this is the right place to post this kind of question, but, I heard from a colleage that he creates all his views in a table view and for each item creates a separate cell.

e.g. A title would be a different cell, image a different cell, etc.

Is this a normal practice or is this something that should be avoided?

The benefit of this method seems to be that you dont have to worry too much about layout and constraints, the problem in my opinion looks like that it becomes a lot harder to manage your code base.

Tags : ios xcode


Answers 1


I don't get the point of doing such thing because UITableViews are used to display (large) sets of data and display those as rows. Maybe if you have an example, that would clarify your point.

On the other hand, you can use a UICollectionView to achieve what you say. UICollectionViews are quite flexible for displaying multidimensional data and achieve complex layouts. UICollectionViews are also good at managing large datasets.

C00kieMonsta
C00kieMonsta
July 12, 2019 14:51 PM

Related Questions



"wrap" app in other app to badge dock icon?

Updated April 04, 2016 08:02 AM

how to graph values calculated by Xcode in OS X?

Updated June 21, 2016 08:02 AM

Beginner Programmer: Mac XCode Errors

Updated August 01, 2015 14:02 PM