Skip to content

Latest commit

 

History

History
44 lines (21 loc) · 1.42 KB

README.md

File metadata and controls

44 lines (21 loc) · 1.42 KB

AutolayoutForUILabel :-- UIView with dynamic height multiple UILabel

Step by Step Guide :-

Step 1 :- Set constrain to UIView

  1. Leading 2) Top 3) Trailing (From mainview)

png1

Step 2 :- Set constrain to Label 1

  1. Leading 2) Top 3) Trailing (From it's superview)

png2

Step 3 :- Set constrain to Label 2

  1. Leading 2) Top 3) Trailing (From it's superview) png3

Step 4 :- Most tricky give botton to UILabel from UIView . png4

Step 5 :-** (Optional) Set constrain to UIButton

  1. Leading 2) Bottom 3) Trailing 4) Fixed Height (From mainview) png5

Output :-

png6

Note :- Make sure you have set Number of lines =0 in Label property.

png7

Thank you 😄😄