获取当前段和行

来源:互联网 发布:用java计算时间差 编辑:程序博客网 时间:2024/05/20 20:46

swift tableview 获取当前段和当前行

func iconClick(gestureRecognizer: UITapGestureRecognizer) {        var getIndexPath = NSIndexPath()        getIndexPath = tableView.indexPathForRowAtPoint(gestureRecognizer.locationInView(tableView))!        print("\(getIndexPath.section)section \(getIndexPath.row) line")    }
0 0