How to customize my UITableView cell below

enter image description here

I use a custom table cell in my code. Please someone can help me how to write code for a common friends cell. How can I get the names AMANDA, VIKA LEVINA, NATASHA, KATE, JESICA in a rectangular box.

+7
ios objective-c iphone uitableview
source share
3 answers

For ordinary friends and Facebook of interest to the cells, you can use the UICollectionView and adjust the width of the cells depending on the text, otherwise you can use one of the controls listed below.

https://www.cocoacontrols.com/controls/jctaglistview

https://www.cocoacontrols.com/controls/taglistview

https://www.cocoacontrols.com/controls/antagsview

+4
source share

you need to create two custom cells in your IB first for the image view cell and others for the list below in your cell. create two custom cells in IB and design them according to your needs, and after that, in your cell for the line in the path pointer method, these cells are distinguished:

uitablviewCell *cell; if(indexPath.row == 0) { cell = [tableview dequereusablecellWithIdentifier:Firstcell]; } else { cell = [tableview dequereusablecellWithIdentifier:secondCell]; } 
+1
source share

For common friends and Facebook stakeholders, you can use ANTagsView .

Using this, you can get a representation of the tag that you are showing in the image. So this is a view that you can add to your cell. To view tags, you need to pass an array according to your presentation.

And set the cell height dynamically using the heightForRowAtIndexPath method.

After that, you can get your idea.

+1
source share

All Articles