UITableView类用法大全:UITableView属性
2016-09-19 15:08
253 查看
【storyboard创建tableView步骤】1.设置根视图2.选中视图,设置导航栏editor/embed in/navigationcontroller3.cell设置Identifier标识4.创建tableviewcontroller类,跟tableviewcontroller控件关联上5.storyboard会自动遵守<</span>UITabBarControllerDelegate,UITableViewDataSource>6.只需要实现必要的协议方法即可。【UITableView属性】UITableViewStyle 样式UITableViewStylePlain,//只有一个分区UITableViewStyleGrouped //可以有多个分区
styleReturns the style of the receiver. (read-only)
Declaration
SWIFTvar style: UITableViewStyle { get }OBJECTIVE-C
@property(nonatomic, readonly) UITableViewStyle style
rowHeight//cell行高The height of each row (table cell) in the receiver.
Declaration
SWIFTvar rowHeight: CGFloatOBJECTIVE-C
@property(nonatomic) CGFloat rowHeightseparatorStyleThe style for table cells used as separators.
Declaration
SWIFTvar separatorStyle: UITableViewCellSeparatorStyleOBJECTIVE-C
@property(nonatomic) UITableViewCellSeparatorStyle separatorStyleUITableViewCellSeparatorStyleNone,// 没分割线UITableViewCellSeparatorStyleSingleLine,//单线UITableViewCellSeparatorStyleSingleLineEtched// 双线?
separatorColor //分割线颜色The color of separator rows in the table view.
Declaration
SWIFTvar separatorColor: UIColor!OBJECTIVE-C
@property(nonatomic, retain) UIColor *separatorColor
separatorEffect//分割效果The effect applied to table separators.
Declaration
SWIFT@NSCopying var separatorEffect: UIVisualEffect?OBJECTIVE-C
@property(nonatomic, copy) UIVisualEffect *separatorEffect
backgroundView //所有cell后面的大背景The background view of the table view.
Declaration
SWIFTvar backgroundView: UIView?OBJECTIVE-C
@property(nonatomic, readwrite, retain) UIView *backgroundView
separatorInset//ios7以后 设置线是否占满Specifies the default inset of cell separators.
Declaration
SWIFTvar separatorInset: UIEdgeInsetsOBJECTIVE-C
@property(nonatomic) UIEdgeInsets separatorInset
tableHeaderView// cell上部视图Returns an accessory view that is displayed above the table.
Declaration
SWIFTvar tableHeaderView: UIView?OBJECTIVE-C
@property(nonatomic, retain) UIView *tableHeaderViewtableFooterView // cell下部视图Returns an accessory view that is displayed below the table.
Declaration
SWIFTvar tableFooterView: UIView?OBJECTIVE-C
@property(nonatomic, retain) UIView *tableFooterView
sectionHeaderHeight//分区标题区域高度,针对多个分区的The height of section headers in the receiving table view.
Declaration
SWIFTvar sectionHeaderHeight: CGFloatOBJECTIVE-C
@property(nonatomic) CGFloat sectionHeaderHeight
sectionFooterHeight//分区标题区域高度,针对多个分区的The height of section footers in the receiving table view.
Declaration
SWIFTvar sectionFooterHeight: CGFloatOBJECTIVE-C
@property(nonatomic) CGFloat sectionFooterHeight
estimatedRowHeight//ios7.0 估算高度The estimated height of rows in the table view.
Declaration
SWIFTvar estimatedRowHeight: CGFloatOBJECTIVE-C
@property(nonatomic) CGFloat estimatedRowHeight
estimatedSectionHeaderHeightThe estimated height of section headers in the table view.
Declaration
SWIFTvar estimatedSectionHeaderHeight: CGFloatOBJECTIVE-C
@property(nonatomic) CGFloat estimatedSectionHeaderHeight
estimatedSectionFooterHeightThe estimated height of section footers in the table view.
Declaration
SWIFTvar estimatedSectionFooterHeight: CGFloatOBJECTIVE-C
@property(nonatomic) CGFloat estimatedSectionFooterHeight
相关文章推荐
- UITableView属性及方法大全
- iOS UITableView 属性及方法大全
- OC中UITableView的属性用法
- UIday0901:UITableView 1 表视图的属性和用法 1
- UITableView属性及方法大全
- UITableView属性方法使用大全
- iOSUI-UITableView属性,方法大全
- UITableView属性及方法大全
- UITableView 属性 方法 协议 大全
- 给iOS开发新手送点福利,简述UITableView的属性和用法
- 简述UITableView的属性和用法
- [OC][转]UITableView属性及方法大全
- UITableView使用大全-表视图合集-持续更新
- UITableView基本用法
- iphone开发 有关 Navigation Bar 和 UITableView 的用法(Navigation Bar 的edit 按钮 自定义实现编辑状态)
- TextView属性大全
- iOS UITableView的使用大全
- Android: TextView常用属性的用法详解
- UITableView的基本用法
- UITableView的使用大全