ios - Overlapping elements of storyboard -



ios - Overlapping elements of storyboard -

the next code updates label in prototype cell. when content takes multiple lines, uiimageview below label overlaps it. have uploaded pics of storyboard , when content updated. how can ensure there fixed space between lastly line of label , uiimageview? under impression spacing nearest neighbour constraint solve seems prepare spacing between uiimageview , first line of label.

contenttext.numberoflines = 0; contenttext.linebreakmode = nslinebreakbywordwrapping; contenttext.text = text; [contenttext sizetofit];

you need setup vertical spacing constraint between label , imageview.

select label , imageview(the 1 overlapped) , in xcode

select editor->pin->vertical spacing

this ensure vertical spacing between them.now label resize according text imageview not overlap instead maintain fixed amount of space label's lastly line.

ios objective-c

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -