ios - Adjusting UILabel width in XIB -
i trying add 2 uilabels in container view , adjusting size of labels according content inside. working fine except 1 thing. want width of labels adjusted according first label having text a , number of lines of second label should change if content in second label more first label. here constraints labels.



make sure label b has width constraint (it not width expand indefinitely fit content) ensure label b has numberoflines set zero. setting available in interface builder.
i'm assuming constraints container has fixed width , height free expand fit labels.
Comments
Post a Comment