public interface UITableViewDataSource
Modifier and Type | Method and Description |
---|---|
default boolean |
canEditRowAtIndexPath(UITableView table,
NSIndexPath indexPath)
Checks whether the row of the specified table view is editable.
|
default boolean |
canMoveRowAtIndexPath(UITableView table,
NSIndexPath indexPath)
Requests permission to relocate the row of the specified table view.
|
UITableViewCell |
cellForRowAtIndexPath(UITableView table,
NSIndexPath idx)
Requests a cell to add in the specified row of the table view.
|
default void |
commitEditingStyle(UITableView table,
int editingStyle,
NSIndexPath indexPath)
Requests permission to insert or delete data of the specified table
view's row.
|
default void |
moveRowAtIndexPath(UITableView table,
NSIndexPath fromIndexPath,
NSIndexPath toIndexPath)
Relocates the data of the initial row to the final row within the
specified table view.
|
int |
numberOfRowsInSection(UITableView table,
int section)
Returns the number of rows of the specified table view's section.
|
default int |
numberOfSectionsInTableView(UITableView table)
Returns the number of sections of the specified table view.
|
default String |
titleForFooterInSection(UITableView table,
int section)
Requests the title for the footer of the specified table view's section.
|
default String |
titleForHeaderInSection(UITableView table,
int section)
Requests the title for the header of the specified table view's section.
|
UITableViewCell cellForRowAtIndexPath(UITableView table, NSIndexPath idx)
table
- The table view into which the cell is inserted.idx
- The index of the row.default int numberOfSectionsInTableView(UITableView table)
table
- The table view for which the number of sections is returned.int numberOfRowsInSection(UITableView table, int section)
table
- The table view for whose section the number of rows is
returned.section
- The index of the table view's section.default void commitEditingStyle(UITableView table, int editingStyle, NSIndexPath indexPath)
table
- The table view within which the editing is done.editingStyle
- The editing(insertion or deletion) of the row.indexPath
- The index of the row.UITableViewCellEditingStyle
default boolean canEditRowAtIndexPath(UITableView table, NSIndexPath indexPath)
table
- The table view for which the check is done.indexPath
- The index of the row.default boolean canMoveRowAtIndexPath(UITableView table, NSIndexPath indexPath)
table
- The table view within which the relocation request is done.indexPath
- The index of the row.default void moveRowAtIndexPath(UITableView table, NSIndexPath fromIndexPath, NSIndexPath toIndexPath)
table
- The table view within which the relocation is done.fromIndexPath
- The index of the initial row.toIndexPath
- The index of the final row.default String titleForHeaderInSection(UITableView table, int section)
table
- The table view for which the title is requested.section
- The section of the table view.default String titleForFooterInSection(UITableView table, int section)
table
- The table view for which the title is requested.section
- The section of the table view.Copyright © 2020. All rights reserved.