UIButton 禁止 setTitle 闪烁

312 阅读1分钟
UIView.performWithoutAnimation {
    startButton.setTitle("xxx", for: .normal)
    startButton.layoutIfNeeded()
}