题目内容

下列方法中,用于为表视图添加索引的是( )

A. tableView:editingStyleForRowAtIndexPath
B. sectionIndexTitlesForTableView
C. tableView:commmitEditingStyle:forRowAtIndexPath:
D. tableView:moveRowAtIndexPath:toIndexPath:

查看答案
更多问题

如果要指定表视图的行高,可通过( )方法实现。

A. tableView: viewForHeaderInSection
B. tableView: viewForFooterInSection
C. tableView: heightForRowAtIndexPath
D. tableView: didSelectRowAtIndexPath

下列选项中,不属于UITableViewDataSource的方法是( )。

A. numberOfSectionsInTableView
B. tableView: numberOfRowsInSection
C. tableView: cellForRowAtIndexPath
D. tableView: didSelectRowAtIndexPath

若要实现单击某个单元格执行指定的操作,可通过哪个方法实现( )。

A. tableView: viewForHeaderInSection
B. tableView: viewForFooterInSection
C. tableView: heightForRowAtIndexPath
D. tableView: didSelectRowAtIndexPath

数据源协议中,描述每个单元格内容的方法是( )。

A. numberOfSectionsInTableView
B. tableView: numberOfRowsInSection
C. tableView: cellForRowAtIndexPath
D. tableView: didSelectRowAtIndexPath

答案查题题库