diff --git a/README.md b/README.md index 9ee6c5c..84a933e 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@

Swift 2 compatible Platform iOS -CocoaPods compatible +CocoaPods compatible License: MIT

diff --git a/Tablet.podspec b/Tablet.podspec index be5eb30..14c06d9 100644 --- a/Tablet.podspec +++ b/Tablet.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'Tablet' - s.version = '0.2.3' + s.version = '0.2.4' s.homepage = 'https://github.com/maxsokolov/tablet' s.summary = 'Powerful type-safe tool for UITableView. Swift 2.0 is required.' diff --git a/Tablet/TableDirector.swift b/Tablet/TableDirector.swift index bdec698..27b2642 100644 --- a/Tablet/TableDirector.swift +++ b/Tablet/TableDirector.swift @@ -28,7 +28,7 @@ public class TableDirector: NSObject, UITableViewDataSource, UITableViewDelegate private weak var tableView: UITableView! private var sections = [TableSectionBuilder]() - public var scrollDelegate: UIScrollViewDelegate? + public weak var scrollDelegate: UIScrollViewDelegate? public init(tableView: UITableView) { super.init() diff --git a/Tablet/Tablet.swift b/Tablet/Tablet.swift index ac0e9a0..ce40387 100644 --- a/Tablet/Tablet.swift +++ b/Tablet/Tablet.swift @@ -109,7 +109,7 @@ public extension ConfigurableCell where Self: UITableViewCell { static func reusableIdentifier() -> String { - return String(self.dynamicType).componentsSeparatedByString(".").last ?? "" + return NSStringFromClass(self).componentsSeparatedByString(".").last ?? "" } } diff --git a/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate b/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate index dc4bb6a..10a4833 100644 Binary files a/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate and b/TabletDemo/TabletDemo.xcodeproj/project.xcworkspace/xcuserdata/max.xcuserdatad/UserInterfaceState.xcuserstate differ