I have a button that contains different titles that depends on the app's circumstances. The problem is that every time it changes it happens with an unwanted animation. I change it using the next line of code:
self.nextLevelButton.setTitle("Next Level", forState: UIControlState.Normal)
I have tried:
self.nextLevelButton.layoutifneeded()
and:
uiview.setAnimaionsEnabled(false)
self.nextLevelButton.setTitle("Next Level", forState: UIControlState.Normal)
uiview.setAnimaionsEnabled(true)
None of the above is working.