Thursday, 16 August 2018

Right way to make a list with images inside a tableview cell SWIFT

I currently have a UITableView in which each cell contains a list of users. I currently have it setup using a UITextView and line break after each name. I then set the cell height accordingly to how many people are in the group.This is working great but now I want to add profile pictures by each use. Here are two possible solutions I have come up with.

  1. A tableview inside each table view cell
  2. Using a method like this in order to add the image in as text and keep the current textview. I believe this would be the better/ more efficient option.

Which method of these two or other option would be the right way/ or most efficient way of going about doing this.



from Right way to make a list with images inside a tableview cell SWIFT

No comments:

Post a Comment