目标:点击屏幕之后,修改 self.selectedButton 的位置
1.提示系统更新约束,并使用 UIView 添加动画时长
![](https://img.haomeiwen.com/i2920384/0de07b09203e7af8.png)
2.重写 updateConstraints 方法,修改 self.selectedButton 的约束,并执行父类的 updateConstraints 方法
![](https://img.haomeiwen.com/i2920384/ff014563aa93c167.png)
目标:点击屏幕之后,修改 self.selectedButton 的位置
1.提示系统更新约束,并使用 UIView 添加动画时长
2.重写 updateConstraints 方法,修改 self.selectedButton 的约束,并执行父类的 updateConstraints 方法
本文标题:基于Masonry的UIView简单的移动动画
本文链接:https://www.haomeiwen.com/subject/wchfjftx.html
网友评论