UIView dynamic height depending on Label Height

后端 未结 6 1043
再見小時候
再見小時候 2021-01-15 05:35

I have a Label which takes dynamicaly some data from database. These data are strings which can sometimes be 3-4-5 rows etc. So this labe is inside a UIView.



        
6条回答
  •  青春惊慌失措
    2021-01-15 05:52

    you can just do it with storyboard this pics

    set the label height relation to greater than or equal

    and set the view height relation to greater than or equal

    it work like a magic

提交回复
热议问题