Andrey Gordeev Andrey Gordeev - 1 year ago 119
iOS Question

Override UIButton's setEnabled method in Swift

In Swift,

doesn't seem to have a
method. Is there a way to detect when the control state was changed?

bzz bzz
Answer Source

You can do something like that in your subclass:

override var enabled:Bool{
        didSet {
            //Your code