Skip to content

Commit

Permalink
change header hidden method
Browse files Browse the repository at this point in the history
  • Loading branch information
nghialv committed Feb 9, 2015
1 parent 887512d commit 14ca51f
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions Source/MYTableViewManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -348,27 +348,15 @@ public extension MYTableViewManager {
footerViewData[section] = data
}

public func enableHeaderViewInSection(section: Int) {
public func setHeaderViewInSection(section: Int, hidden: Bool) {
if let data = headerViewData[section] {
data.isEnabled = true
data.isEnabled = !hidden
}
}

public func disableHeaderViewInSection(section: Int) {
if let data = headerViewData[section] {
data.isEnabled = false
}
}

public func enableFooterViewInSection(section: Int) {
if let data = footerViewData[section] {
data.isEnabled = true
}
}

public func disableFooterViewInSection(section: Int) {
public func setFooterViewInSection(section: Int, hidden: Bool) {
if let data = footerViewData[section] {
data.isEnabled = false
data.isEnabled = !hidden
}
}
}
Expand Down

0 comments on commit 14ca51f

Please sign in to comment.