【发布时间】:2012-10-27 16:23:49
【问题描述】:
使用情节提要,我创建了一个包含七行的 UITableview,并为每行创建了七个 UIViewControllers。我想在选择特定行时导航到特定的 UIViewController。如何使用 Segue 方法导航 UIViewController?
我试了很多次,还是不行。
【问题讨论】:
使用情节提要,我创建了一个包含七行的 UITableview,并为每行创建了七个 UIViewControllers。我想在选择特定行时导航到特定的 UIViewController。如何使用 Segue 方法导航 UIViewController?
我试了很多次,还是不行。
【问题讨论】:
您可以将您的UITableViewController 中的七个segue 连接到您的七个UIViewController。每个segue 设置一个唯一的identifier。然后在tableview:didSelectRowAtIndexPath:方法中,可以使用perfromSegueWithIdentifier:sender:方法来触发segue。
【讨论】: