Reputation: 15
I want to learn and implement the most suitable/simple solution to display dynamic data (JSON) in three lines and an active (clickable) download icon. Screenshot is attached
I would be glad to get your ideas and advice! Thanks
Upvotes: 0
Views: 78
Reputation: 95
If you have array of data like this, the best way is using UITableView
class. With UITableview
, you can custom your UITableViewCell
on the fly
Upvotes: 0
Reputation: 2042
UITableView
is the way to go, as you can reuse a custom cell you define. And to add to that, UITableView
's cells are loaded lazily and are reused. You can use a UIScrollView
but if you have a lot of rows it can horde your memory real fast. In your case, a UIScrollView
can be used as well, but if you plan on expanding, UITableViews
would be the choice. All in all, go with a UITableView
+ a custom UITableViewCell
Upvotes: 1