IOS : firing multiple segues from a prototype cell in storyboards

血红的双手。 提交于 2019-12-03 16:07:15

Yes, the only thing is that you don't have to connect your prototype cell to multiple destinations, the origin of the multiple segue must be the view controller:

1 - create the segue from your Table View Controller (not the cell) to the destination VC and give to each segue an unique name.

2 - override didSelectRowAtIndexPath: and call [self performSegueWithIdentifier:@"NAMEOFTHESEGUE" sender:self]

That's all :-)

If you have you have put a table view within a View Controller, drag the segues from the Controller and not the cell, just as LombaX has explained above

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!