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
Post a Comment