Keeping UITextFields width the same in a static TableView

Hi all,

I have a static TableView with text fields. I want them to have the same width, but I can't make "relative constraint" (with ctrl, or how it's called) to each other because they placed in different cells. As a workaround, I made fixed width constraints, but now xcode shows warnings "fixed width constraints may cause clipping". So I wonder if there is a better way?

Those text fields are for numbers only, so probably there will be no localization issues.

Don't worry too much about "fixed width constraints may cause clipping" ; I get this warning and usually ignore it (effectively, major risk is with localization).


You say:

because they placed in different cells…

Do you mean you have different cell prototypes ?

Otherwise, constraints apply to the cell prototype, so I don't catch your point.

Keeping UITextFields width the same in a static TableView
 
 
Q