UIView frames reset when using autolayout

后端 未结 3 2158
轻奢々
轻奢々 2021-02-15 16:23

I\'m facing an issue. I\'m working on an app and I\'m using storyboard with Autolayout enabled. Now on one of my UIViewControllers

3条回答
  •  抹茶落季
    2021-02-15 17:03

    The reason is Autolayout will update the views to their original position. The Autolayout system will periodically set the position and size of every view in your view hierarchy based on the layout constraints.

提交回复
热议问题