Xcode 8 UIButtons with constraints not showing up

前端 未结 7 1651
醉梦人生
醉梦人生 2020-12-14 03:30

Everything used to work great until yesterday I updated Xcode to version 8.

If I don\'t use any constraints, I can see the buttons but when I apply constraint(s) to

7条回答
  •  长情又很酷
    2020-12-14 03:57

    I was missing the point of setting UIButton class to my custom class. I checked my custom class and have seen that I set corner radius on awakeFromNib() method. I called layoutIfNeeded() before I set corner radius which was the solution in my case.

提交回复
热议问题