Swift: Button round corner breaks contraints

前端 未结 3 849
一整个雨季
一整个雨季 2020-12-22 10:21

I have a tableview with custom cell loaded via xib and in that cell I have status button which bottom right corner should be rounded. The button has constraints Trailing/Lea

3条回答
  •  执笔经年
    2020-12-22 11:16

    Maybe your button is overlapping since it doesn't have an upper constraint? Try adding a bright border and see if you can see the top part, if not try adding a constraint to the top. Also, instead of giving it a static height, try making it a proportional height to the object above it (maybe the screen size of your device is causing it to overlap)

提交回复
热议问题