UITableView类用法大全:UITableView属性
Posted 爱木之心
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了UITableView类用法大全:UITableView属性相关的知识,希望对你有一定的参考价值。
- UITableViewStyle 样式
Returns the style of the receiver. (read-only)
Declaration
SWIFT
var style: UITableViewStyle { get }
OBJECTIVE-C
@property(nonatomic, readonly) UITableViewStyle style
rowHeight//cell行高
The height of each row (table cell) in the receiver.
The style for table cells used as separators.
Declaration
SWIFT
var separatorStyle: UITableViewCellSeparatorStyle
OBJECTIVE-C
@property(nonatomic) UITableViewCellSeparatorStyle separatorStyle
-
separatorColor //分割线颜色
-
separatorEffect//分割效果
The effect applied to table separators.
Declaration
SWIFT
@NSCopying var separatorEffect: UIVisualEffect?
OBJECTIVE-C
@property(nonatomic, copy) UIVisualEffect *separatorEffect
-
backgroundView //所有cell后面的大背景
-
separatorInset//ios7以后 设置线是否占满
Specifies the default inset of cell separators.
Declaration
SWIFT
var separatorInset: UIEdgeInsets
OBJECTIVE-C
@property(nonatomic) UIEdgeInsets separatorInset
-
tableHeaderView// cell上部视图
- tableFooterView // cell下部视图
-
sectionHeaderHeight//分区标题区域高度,针对多个分区的
The height of section headers in the receiving table view.
Declaration
SWIFT
var sectionHeaderHeight: CGFloat
OBJECTIVE-C
@property(nonatomic) CGFloat sectionHeaderHeight
The height of section footers in the receiving table view.
Declaration
SWIFT
var sectionFooterHeight: CGFloat
OBJECTIVE-C
@property(nonatomic) CGFloat sectionFooterHeight
-
estimatedRowHeight//ios7.0 估算高度
The estimated height of rows in the table view.
Declaration
SWIFT
var estimatedRowHeight: CGFloat
OBJECTIVE-C
@property(nonatomic) CGFloat estimatedRowHeight
The estimated height of section headers in the table view.
Declaration
SWIFT
var estimatedSectionHeaderHeight: CGFloat
OBJECTIVE-C
@property(nonatomic) CGFloat estimatedSectionHeaderHeight
The estimated height of section footers in the table view.
Declaration
SWIFT
var estimatedSectionFooterHeight: CGFloat
OBJECTIVE-C
@property(nonatomic) CGFloat estimatedSectionFooterHeight
以上是关于UITableView类用法大全:UITableView属性的主要内容,如果未能解决你的问题,请参考以下文章
UINavigationController 如何成为 UITableView 的 navigationController?