您的位置:首页 > 移动开发 > Swift

获取当前段和行

2016-07-19 16:14 351 查看
swift tableview 获取当前段和当前行

func iconClick(gestureRecognizer: UITapGestureRecognizer) {

var getIndexPath = NSIndexPath()
getIndexPath = tableView.indexPathForRowAtPoint(gestureRecognizer.locationInView(tableView))!
print("\(getIndexPath.section)section \(getIndexPath.row) line")
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息