Skip to content

Commit

Permalink
added proper constructors for the BindableTableView
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyclaysmith committed Feb 6, 2015
1 parent ad8cbfc commit 2ae772d
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions AwfulBindingUI/BindableTableView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,34 @@ public class BindableTableView : UITableView, UITableViewDataSource, UITableView
}
}

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

self.delegate = self
self.dataSource = self
}

override init() {
super.init()

self.delegate = self
self.dataSource = self
}

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

self.delegate = self
self.dataSource = self
}

override init(frame: CGRect, style: UITableViewStyle) {
super.init(frame:frame, style:style)

self.delegate = self
self.dataSource = self
}

public var deleteHandler:((indexPath:NSIndexPath) -> Void)?

private func arrayChangedListener(){
Expand Down

0 comments on commit 2ae772d

Please sign in to comment.