iOS开发--UItableView类属性
2015-04-03 14:02
375 查看
【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
相关文章推荐
- IOS学习笔记(十二)之IOS开发之表视图(UITableView)的相关类,属性与表视图实现学习(二)
- ios开发总结之UITableView常用属性和方法
- 给iOS开发新手送点福利,简述UITableView的属性和用法
- IOS开发UI基础UITableView的属性
- IOS学习笔记(十二)之IOS开发之表视图(UITableView)的相关类,属性与表视图实现学习(二)
- iOS开发 UITableView的方法和属性总结
- IOS开发(25)之删除UITableView的Cell
- iOS 开发 UItableView中滑动删除 cell
- [iOS开发必备工具之]UITableView下拉刷新效果
- IOS开发UI展示之UITableView ──分页加载
- IOS开发(27)之UITableView的Cell显示长按快捷菜单
- IOS开发(52)之UITableView索引搜索之UILocalizedIndexedCollation
- IOS UITableView 方法及属性学习
- ios开发之View属性hidden, opaque, alpha的区别
- [IOS] iphone开发之UITableView之UITableViewCell [待续中。。。]
- IOS UITableView NSIndexPath属性讲解
- IOS开发(51)之UITableView建立索引搜索
- IOS开发之----UITableView默认选中第一行 (2012-06-05 20:49:22)
- 设置内容IOS开发(51)之UITableView建立索引搜索
- IOS UITableView的相关属性和方法