FUITableViewHeaderFooterView
open class FUITableViewHeaderFooterView : NibDesignableTableViewHeaderFooterView
UITableViewHeaderFooterView
reusable view for headers and footers.
The UITableViewHeaderFooterView
has two style options: .title
, and .attribute
.
In .title
style, only the titleLabel
is displayed.
In .attribute
style, the titleLabel
is displayed, and the attributeLabel
may also be displayed. Also, in .attribute
style, the disclosure indicator is displayed by default.
-
Reuse identifier
Declaration
Swift
open class var reuseIdentifier: String { get }
Return Value
String a reuse identifier that describes FUITableViewHeaderFooterView
-
Sets background color of the header content for the normal and highlighted states.
Declaration
Swift
public func setBackgroundColor(_ color: UIColor, forState state: UIControlState)
Parameters
color
set to header content
backgroundColor
state
the UIControlState for which to set the color. Can be either .normal or .highlighted
-
Sets background color of the header content for the normal state.
Declaration
Swift
@nonobjc public func setBackgroundColor(_ color: UIColor)
Parameters
color
set to header content
backgroundColor
-
UILabel
for title content. Visible in all styles.Declaration
Swift
public var titleLabel: UILabel { get }
-
UILabel
for attribute content. Hidden by default, in.title
style.Declaration
Swift
public var attributeLabel: UILabel { get }
-
Bool
flag, to set whether disclosure indicator is visible. Hidden by default, in.title
style.Declaration
Swift
public var isDisclosureAccessoryHidden: Bool { get set }
-
Style of the view. Determines which views are visible; affects labels’ fonts, and vertical padding.
Declaration
Swift
public var style: FUISectionHeaderFooterStyle { get set }
-
Optional handler, to respond to tap events on the view.
Declaration
Swift
public var didSelectHandler: (() -> (Void))? { get set }
-
Clear spacing preserved above the view. Should be used to set header spacing, when the table view’s header height is
UITableView.automaticDimension
.Declaration
Swift
public var topPadding: CGFloat { get set }
-
Clear spacing preserved below the view. Should be used to set footer spacing, when the table view’s footer height is
UITableView.automaticDimension
.Declaration
Swift
public var bottomPadding: CGFloat { get set }
-
The style of selected header.
.default
,.gray
: both are the regular selection style with gray selected background color..none
: none selected background color..blue
: not supported.
Declaration
Swift
open var selectionStyle: UITableViewCellSelectionStyle
-
The set of edges of the view, which should display a separator line.
Defaults to
.none
.Important
Only top and bottom edges support separator lines. Options.left
and.right
will be ignored.view.separators = .top
Declaration
Swift
public var separators: UIRectEdge { get set }
-
Insets applied to separator lines, relative to
superview.layoutMargins
.Note
Only.left
and.right
properties of theUIEdgeInsets
are used..top
and.bottom
values provided are ignored.Declaration
Swift
public var separatorInset: UIEdgeInsets { get set }
-
Color used for separator lines. Defaults to
.line
.Declaration
Swift
public var separatorsLineColor: UIColor { get set }
-
Undocumented
Declaration
Swift
open override func prepareForInterfaceBuilder()