项目作者: badalpub1991

项目描述 :
UIView with dynamic height multiple UILabel
高级语言: Swift
项目地址: git://github.com/badalpub1991/AutolayoutForUILabel.git
创建时间: 2018-03-19T22:50:54Z
项目社区:https://github.com/badalpub1991/AutolayoutForUILabel

开源协议:

下载


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 :smile::smile: