调用self.performSegueWithIdentifier,但未显示视图

时间:2016-12-05 19:34:39

标签: ios swift xcode uitableview

我目前有ViewController,其中ContainerView显示表格ViewController

在我的表didSelectCellAtIndexPath的{​​{1}}方法中,它调用其父ViewController的委托方法(在ViewController中保存它的那个)执行以下操作代码:

ContainerView

此segue仅针对父func communitiesTableViewControllerDidTapDetail(communitiesTableViewController: CommunitiesTableViewController, communitiesController: CommunitiesController, userController: UserController, community: Community, communitySubscriptionDelegate: CommunitySubscriptionDelegate?) { let segue = CommunitiesViewController.Storyboard.Segue.DetailView(community: community, userController: userController, communitySubscriptionDelegate: communitySubscriptionDelegate) self.performSegueWithIdentifier(CommunitiesViewController.Storyboard.Segue.DetailView.identifier, sender: segue.userInfo()) } 执行,而不针对表ViewController执行。

ViewController有两个触发的segues,而ViewController控制器没有,但我认为这不应该重要,因为它嵌入在TableView ContainerView中}。

0 个答案:

没有答案