Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个视图控制器,它们使用 prepareforsegue 方法将您带到一个通用视图控制器。问题是我如何在公共视图控制器中找出它从哪个控制器开始...
segue 对象具有您可以查看的属性source。destination所以,从通用的目标视图控制器中,您可以查看sourcesegue。
source
destination