Skip to content

Commit

Permalink
made some BIndableTextField inits public (should have been already)
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyclaysmith committed Mar 25, 2015
1 parent 6c69f8c commit b435d3c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions AwfulBindingUI/BindableTextField.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,21 +27,25 @@ public class BindableTextField:UITextField{
}
}

override init() {
public override init() {
super.init()

self.addTarget(self, action: Selector("textChanged"), forControlEvents: UIControlEvents.EditingChanged)
commonInit()
}

override init(frame: CGRect) {
public override init(frame: CGRect) {
super.init(frame: frame)

self.addTarget(self, action: Selector("textChanged"), forControlEvents: UIControlEvents.EditingChanged)
commonInit()
}

public required init(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)

commonInit()
}

internal func commonInit(){
self.addTarget(self, action: Selector("textChanged"), forControlEvents: UIControlEvents.EditingChanged)
}

Expand Down

0 comments on commit b435d3c

Please sign in to comment.