ios – Set maxwidth on UITextfield


I’ve a Uitextfield, I need the main and trailing to be 23 from the secure space or superview when the system width is lower than 580 making it develop as vast because the system display screen however 23 from each edges. However on units with width better than 580, I do not need the uitextfield width to develop wider than 580. I wish to have a max width of 580, and have it centered.

I attempted setting the main and trailing to be 23, and set the width <= 580, however it would not work on iPads which have a tool width better than 580, as a substitute, it grows very vast ignoring width<= 580 constraint. How can I obtain this in interface builder

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles