How to access UIButton via tag in Swift
In Swift, this would look like this:
var tmpButton = self.view.viewWithTag(tmpTag) as? UIButton
It is more or less a direct translation, except the cast is at the other end of the expression.
In Swift, this would look like this:
var tmpButton = self.view.viewWithTag(tmpTag) as? UIButton
It is more or less a direct translation, except the cast is at the other end of the expression.