Skip to content

badalpub1991/AutolayoutForUILabel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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 😄😄

About

UIView with dynamic height multiple UILabel

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages