Autolayout Resize multiple labels

I have three labels

There is a button above each label

I have added constraints for each label : align trailing and leading to button, as well as top space to button

Also, I have set the font size to 14, and Autoshrink Minimum Font Scale to 0.5

I want these three labels to have the same font size and to shrink and expand themselves according to screen size

But unfortunately they differs in their sizes according to the text

Any help? Thanks

Answers


-> Give fixed width constraint to all the labels. -> Give only leading space constraint to first label. -> Give only trailing space constraint to last label label. -> Give align centre x(centre horizontally) constraint to middle label.


Need Your Help

Is it possible to specify both upper and lower bound constraints on type parameters in Java?

java generics

Is it possible to specify both upper and lower bound constraints on type parameters in Java?

Can't see drop down list in Excel VBA

excel excel-vba vba

I've created a very simple drop down list in excel. It holds a sequence of integers loaded from a cell range (years). I need to read the selected value in vba. However I can't even seem to find ...