UITableView “selection” triggered segue

前端 未结 2 832
误落风尘
误落风尘 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).

    0 讨论(0)
  • 2021-02-15 03:48

    to get a clear view about how to use storyboard please check the following tutorial, how to use Storyboard

    make sure that you read the second part too....this will give you a clear idea how to use, and the solution for your question also is there.

    0 讨论(0)
提交回复
热议问题