Home Autolayout issue with collectionview cell
Reply: 1

Autolayout issue with collectionview cell

Vishal N
Vishal N Published in 2018-01-13 08:16:05Z

I am having custom UIcollectionviewCell with 1 button and 3 labels.
I need to set proper autolayout for design.
here is my fisrt image which is going to be show all 4 labels
1. Image From Here

In this the fisrt label need to be resize width upto some maximum width. When content reach to the maximum width the content should be with [...].
The second label have to stick with first label with 20px horizontal space from first label
and third label need to be stick width second label with 10 px.
The second and third label have fix character length i.e 5
i have try some constraint like.
2nd Label
1st label
3rd label
3rd label [other constraint]
2nd label [other constraint]
By set this constarints i am getting o/p
then o/p of current constraint
Can anyone need to find solution how can i reach this constarint?Need o/p like this

Hitesh Agarwal
Hitesh Agarwal Reply to 2018-01-13 16:26:47Z

Just set width of label 2 and label 3 and button. Label 1 will spread to left space.

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.303598 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO