ios - UILabel keeps resizing to a height of 0 regardless of the text -


i have uilabel following constraints

enter image description here

and set number of lines equal 0. layout on ib can seen below. want uilabel expand dynamically based on text receive views below pushed down based on height of uilabel. however, not happens.

enter image description here

as seen below, uilabel doesn't appear @ all. seems have height of 0 regardless of set text be. know need modify make happen? know why uilabel has height of 0?

enter image description here

updates:

things tried given comments below.

  1. word wrap, nothing changed

  2. adding height constraint on uilabel, text gets cut off after first line

  3. height constraint greater or equal constant, text still gets cut off after first line

i created dummy view according requirement.

enter image description here

  1. button has fixed constraints : leading width ,height, top space.

  2. for label : leading, trailing, topspace button

enter image description here enter image description here

3.for view below label: give leading, trailing, height , top space label enter image description here

  1. so here label height not fixed .so change according text.

enter image description here


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -