UIButton 设置 title 文字时闪动

Posted by xtcel on Friday, December 22, 2017

UIButton-system类型 动态设置title文字时闪动 解决方案:

self.sendCodeButton.titleLabel?.text = "\(self.remainCount)s重新发送"
self.sendCodeButton.setTitle("\(self.remainCount)s重新发送", for: .normal)