0
Good night,
I started learning Swift a short time ago and am trying to develop an app in Xcode. Today I found the following situation: I need to make a list of information in which it is possible to scroll down, besides being able to expand vertically one of the lines of the list, sending the others down, so I thought: "Oh, a tableview, obviously...".
However, what happens is that all cells in this tableview will be totally different from each other, both in content and in the position of the elements within the cell. And taking into account all the examples of tableviews I’ve seen so far, it seems that they are always used for standardized lists, like the list of videos searched in the youtube app, for example. I started doing it by tableview and it seems to me that I’m doing a lot of atoa code, which should have an easier way of doing this kind of thing.
There, I discovered that there are two potential ways to do what I want: Collection views and scroll views, which in my ignorance seem to have a smaller focus on standardized lists.
So what I want to know is, which of these three solutions is best suited to my case, especially considering their ease and flexibility to deal with non-standard lists? Grateful.
Thank you so much for the very detailed answer! I ended up using a tableview even, solved well and was not as complicated as I thought. I’ll take a look at that file.
– Guilherme Vassallo
ATT: I took advantage of the project and I’m implementing a few more things but the idea remains the same
– George Gomes