Since Xcode 8 and iOS10, views are not sized properly on viewDidLayoutSubviews

前端 未结 13 2216
北海茫月
北海茫月 2020-11-29 16:48

It seems that with Xcode 8, on viewDidLoad, all viewcontroller subviews have the same size of 1000x1000. Strange thing, but okay, viewDidLoad has n

13条回答
  •  野性不改
    2020-11-29 17:38

    Are you using rounded corners for your button ? Try calling layoutIfNeeded() before.

提交回复
热议问题