- tableView:editingStyleForRowAtIndexPath: 编辑的样式有可能是插入或者删除或者其他
Asks the delegate for the editing style行的编辑样式 of a row at a particular location in a table view.
Declaration声明
SWIFT
optional func tableView(_ tableView: UITableView,
editingStyleForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCellEditingStyle
OBJECTIVE-C
- (UITableViewCellEditingStyle)tableView:(UITableView *)tableView
editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
Parameters参数
tableView
The table-view object requesting this information.
indexPath
An index path locating a row in tableView.
Return Value
The editing style of the cell for the row identified by indexPath.
Discussion
This method allows the delegate to customize the editing style of the cell located atindexPath. If the delegate does not implement this method and the UITableViewCell object is editable (that is, it has its editing property set to YES), the cell has the UITableViewCellEditingStyleDelete style set for it.
Import Statement
OBJECTIVE-C
@import UIKit;
SWIFT
import UIKit