ios - Autoshrink feature of Label in Tableview cell on scrolling doesn't work -


i have 2 labels side side in custom cell of tableview. when adding data first time looks :

enter image description here

which fine , required design .

problem occurs when start scrolling tableview. after going down in tableview , coming changes this:

enter image description here

first label has autoshrink feature added not in second label. doing in storyboard except data poulating part. please tell me if doing wrong in it.

any appreciated.

**edit: **

the custom cell have added in project:

enter image description here

there 2 labels have highlighted selecting them.

constraints first label are:

enter image description here

i have added auto shrink feature in first label :

enter image description here

constraints second label are:

enter image description here

i haven't added auto shrink feature in second label have keep fixed font size in second label.

finally after reading more content hugging priority , content compression resistance priority got solution.

thanks blog too:

i changed priority follows:

for first label:

enter image description here

for second label :

enter image description here

and working fine.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -