|
//列表项尾部附件点击
override
func
tableView(tableView:
UITableView
,
accessoryButtonTappedForRowWithIndexPath indexPath:
NSIndexPath
) {
self
.tableView!.deselectRowAtIndexPath(indexPath,animated:
true
)
var
itemString =
.tasks[indexPath.row]
alertview =
UIAlertView
();
alertview.title =
"尾部感叹号点击!"
alertview.message =
"你选中了【\(itemString)】"
;
alertview.addButtonWithTitle(
"确定"
)
alertview.show();
}
//列表项内容点击
) {
)
.tasks[indexPath.row]
();
"列表项内容点击!"
;
)
alertview.show();
}
|