目标:点击屏幕之后,修改 self.selectedButton 的位置
1.提示系统更新约束,并使用 UIView 添加动画时长
更新约束
2.重写 updateConstraints 方法,修改 self.selectedButton 的约束,并执行父类的 updateConstraints 方法
重写父类 updateConstraints 方法,并修改约束
目标:点击屏幕之后,修改 self.selectedButton 的位置
1.提示系统更新约束,并使用 UIView 添加动画时长
2.重写 updateConstraints 方法,修改 self.selectedButton 的约束,并执行父类的 updateConstraints 方法