In iOS 7 my UIButton titles are animating in and out at the wrong time - late. This problem does not appear on iOS 6. I\'m just using:
[self setTitle:text fo
Swift 4 version of Xhacker Liu answer
import Foundation import UIKit extension UIButton { func setTitleWithOutAnimation(title: String?) { UIView.setAnimationsEnabled(false) setTitle(title, for: .normal) layoutIfNeeded() UIView.setAnimationsEnabled(true) } }