CGAffineTransformMakeScale animation not working

后端 未结 2 1918
梦毁少年i
梦毁少年i 2021-02-07 21:04

I have a viewcontroller with a view that I am dismissing using a UIView animation to scale it down to 0 before removing it. My code for dismissing it is:

[UIView         


        
2条回答
  •  Happy的楠姐
    2021-02-07 21:34

    If acceptable for you, set the scale values to 0.01 like so:

    _menuContainerView.transform = CGAffineTransformMakeScale(0.01, 0.01);

    Reference

提交回复
热议问题