ios - UILabel keeps resizing to a height of 0 regardless of the text -
i have uilabel following constraints
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.
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?
updates:
things tried given comments below.
word wrap, nothing changed
adding height constraint on uilabel, text gets cut off after first line
height constraint greater or equal constant, text still gets cut off after first line
i created dummy view according requirement.
button has fixed constraints : leading width ,height, top space.
for label : leading, trailing, topspace button
3.for view below label: give leading, trailing, height , top space label
- so here label height not fixed .so change according text.
Comments
Post a Comment