码迷,mamicode.com
首页 > 其他好文 > 详细

UITableViewDelegate实现方法editingStyleForRowAtIndexPath

时间:2015-09-17 09:59:48      阅读:177      评论:0      收藏:0      [点我收藏+]

标签:


- 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

UITableViewDelegate实现方法editingStyleForRowAtIndexPath

标签:

原文地址:http://www.cnblogs.com/wenios/p/4815332.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!