初始化方法:
initWithFrame:-----------设置表的大小和位置
initWithFrame:style---------设置表的大小,位置和样式(style : Grouped/Plain)
dataSource ---设置UITableViewDataSource的代理
delegate ---设置UItableViewDelegate的代理
sectionHeaderHeight、sectionFooterHeight、rowHeight -- 设置表头、尾、cell的高度
sectionIndexColor -- 设置sectionIndexTitle(表索引子母)的颜色
estimatedRowHeight --- 设置表格行的估算高度以改善性能
estimatedSectionHeaderHeight、estimatedSectionFooterHeight ----- 设置Section头和Section尾估算高度
separatorEffect -------- 表的分割线(毛玻璃效果)//默认的分割线的色调暗
setEditing:----------表格进入编辑状态,无动画
setEditing: animated:---------表格进入编辑状态,有动画
allowsSelection ---------bool------是否被选中
allowsSelectionDuringEditing -----bool----- 编辑模式下是否被选中
allowsMultipleSelection --- bool---是否允许多选
allowsMultipleSelectionDuringEditing-----bool----;//是否允许编辑的时候多选
reloadData---------------刷新整个表视图
reloadSectionIndexTitles--------刷新索引栏
hasUncommittedUpdates ------ 返回表视图能否包含删除占位符或者重新排序它的行
numberOfSections-----------获取当前所有的组
numberOfRowsInSection:---------获取某个组有多少行
rectForSection:----------获取某个组的位置和大小
rectForHeaderInSection:---------获取某个组的头标签的位置和大小
rectForFooterInSection:-----------获取某个组的尾标签的位置和大小
rectForRowAtIndex:-----------获取某一行的位置和大小
indexPathForRowAtPoint-------------点击某一个点,判断是在哪一行上的信息。
indexPathForCell:------------获取单元格的信息
indexPathsForRowsInRect:---------在某个区域里会返回多个单元格信息
cellForRowAtIndexPath:-------------通过单元格路径得到单元格
visibleCells-----------返回所有可见的单元格
indexPathsForVisibleRows--------返回所有可见行的路径
headerViewForSection:--------设置头标签的视图
footerViewForSection;----------设置尾标签的视图
dequeueReusableCellWithI dentifier:--------- 获取重用队列里的cell单元格
dequeueReusableHeaderFooterViewWithIdentifier -------获取重用队列里的UITableViewHeaderFooterView的单元格
beginUpdates--------只添加或删除才会更新行数
endUpdates---------添加或删除后会调用添加或删除方法时才会更新
insertSections:withRowAnimation:-----------插入一个或多个组,并使用动画
insertRowsIndexPaths:withRowAnimation:-------插入一个或多个单元格,并使用动画
deleteSections:withRowAnimation:--------删除一个或多个组,并使用动画
deleteRowIndexPaths:withRowAnimation:--------删除一个或多个单元格,并使用动画
reloadSections:withRowAnimation:---------更新一个或多个组,并使用动画
reloadRowIndexPaths:withRowAnimation:-------------更新一个或多个单元格,并使用动画
moveSection:toSection:-------------移动某个组到目标组位置
moveRowAtIndexPath:toIndexPath:-----------移动个某个单元格到目标单元格位置
indexPathsForSelectedRow----------返回选择的一个单元格的路径
indexPathsForSelectedRows---------返回选择的所有的单元格的路径
selectRowAtIndexPath:animation:scrollPosition---------设置选中某个区域内的单元格
deselectRowAtIndexPath:animation:----------取消选中的单元格
UITableViewDataSource代理方法:
numberOfSectionsInTableView:------------设置表格的组数
tableView:numberOfRowInSection:----------设置每个组有多少行
tableView:cellForRowAtIndexPath:---------设置单元格显示的内容
tableView:titleForHeaderInSection:---------设置组表的头标签视图
tableView:titleForFooterInSection:-----------设置组表的尾标签视图
tableView:canEditRowAtIndexPath:---------设置单元格是否可以编辑
tableView:canMoveRowAtIndexPath:--------设置单元格是否可以移动
tableView:sectionIndexTitleForTableView:atIndex:-------设置指定组的表的头标签文本
tableView:commitEditingStyle:forRowAtIndexPath:----------编辑单元格(添加,删除)
tableView:moveRowAtIndexPath:toIndexPath ------- 单元格移动
tableView:indentationLevelForRowAtIndexPath ------- 返回行层次的深度
tableView:editActionsForRowAtIndexPath ----- 自定义左滑动的编辑功能样式(UITableViewRowAction)
tableView:titleForDeleteConfirmationButtonForRowAtIndexPath ------ 改变默认左滑动出现的字样 eg:改变默认默认 Delete 字为 编辑(return @“编辑”)
tableView: willDisplayHeaderView: forSection: -------- 设置当前section头的样式
tableView: willDisplayCell:forRowAtIndexPath:-----------设置当前的单元格
tableView: heightForRowAtIndexPath:-----------设置每行的高度
tableView:tableViewheightForHeaderInSection:-----------设置组表的头标签高度
tableView:tableViewheightForFooterInSection:-------------设置组表的尾标签高度
tableView: viewForHeaderInSection:----------自定义组表的头标签视图
tableView: viewForFooterInSection: ----------自定义组表的尾标签视图
tableView:accessoryButtonTappedForRowWithIndexPath:-----------设置某个单元格上的右指向按钮的响应方法
tableView:willSelectRowAtIndexPath:-----------获取将要选择的单元格的路径
tableView:didSelectRowAtIndexPath:-----------获取选中的单元格的响应事件
tableView: tableViewwillDeselectRowAtIndexPath:------------获取将要未选中的单元格的路径
tableView:didDeselectRowAtIndexPath:-----------获取未选中的单元格响应事件(取消选中某个item时触发的方法)
(didSelectRowAtIndexPath didDeselectRowAtIndexPath组合快速实现tableView单选)