UIView frames reset when using autolayout

后端 未结 3 2169
轻奢々
轻奢々 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 16:46

    For all the views that you are animating write the following code in viewDidLoad

    myViewToAnimate.translatesAutoresizingMaskIntoConstraints = YES;
    

    Hope this helps

提交回复
热议问题