【发布时间】:2014-10-05 19:27:54
【问题描述】:
我正在尝试在我的表格视图中添加一些编辑操作。但是,我无法弄清楚要为 UITableViewRowAction 输入什么!。它在代码中表示为IDK。
func Done(UITableViewRowAction!,
NSIndexPath!) -> Void {
}
override func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -> [AnyObject]? {
let complete = UITableViewRowAction(style: UITableViewRowActionStyle.Default, title: "Done", handler: Done(_IDK_, indexPath))
let arrayofactions: Array = [complete]
return arrayofactions
}
【问题讨论】: