ios - making UILabels / UITextFields looks the same proportionally on all phones -


using autolayout, best way make same on iphone sizes?

adding constraints of individual components has caused 1 of uitextfields bigger rest every time, , i'm unsure how make them same size, , fit proportionally on iphones.

you have constraint can establish relationship of between 2 uiviews.

if ctrl drag hours mins can select "width". sure constant value 1. can same hours seconds.

you can also code :

constraint = [nslayoutconstraint constraintwithitem:mylabel                                           attribute:nslayoutattributewidth                                           relatedby:nslayoutrelationequal                                              toitem:otherlabel                                           attribute:nslayoutattributewidth                                          multiplier:1.0f                                            constant:0]; 

Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -