Constraints in Table Cell

TommyGohTommyGoh USMember ✭✭

Have anybody encountered this issue ? I've set the constraints in the Storyboard. But when i run it in simulator the views overlaps by itself. Apperently, it happened in table cell only. Thanks before

Tagged:

Answers

  • lowleetaklowleetak MYMember ✭✭

    It seems like the constraint is not set correctly. Maybe you can upload images on your definitions of the constraints. Or the storyboard file.

  • TommyGohTommyGoh USMember ✭✭

    i've posted the constraints here

  • lowleetaklowleetak MYMember ✭✭

    You only posted constraint of one label but not the other 1.
    If for me, I will define the following constraint:
    Label 1
    1. Leading space to superview
    2. Vertical center to superview
    3. Trailing to leading of label 2

    Label 2
    1. Vertical center to superview OR align center to label 1
    2. Trailing space to superview
    3. width

Sign In or Register to comment.