目標:點擊屏幕之后,修改 self.selectedButton 的位置
1.提示系統更新約束,并使用 UIView 添加動畫時長
更新約束
2.重寫 updateConstraints 方法,修改 self.selectedButton 的約束,并執行父類的 updateConstraints 方法
重寫父類 updateConstraints 方法,并修改約束
目標:點擊屏幕之后,修改 self.selectedButton 的位置
1.提示系統更新約束,并使用 UIView 添加動畫時長
2.重寫 updateConstraints 方法,修改 self.selectedButton 的約束,并執行父類的 updateConstraints 方法