UITableView “selection” triggered segue

前端 未结 2 827
误落风尘
误落风尘 2021-02-15 03:33

I am using Storyboard and UITableView without UINavigationController.

When tapping on any cell, it should bring user to a detail p

2条回答
  •  孤独总比滥情好
    2021-02-15 03:38

    The prepareForSegue:sender: method's sender parameter is the cell you are looking for. You can get it's index path by [self.tableView indexPathForCell:sender] (you may need a cast).

提交回复
热议问题