I have been looking for an answer for this, but have only found answers for segues.
I have viewController1
with a button that segues to viewController2
. There is no code for this, I set it up through Interface builder. On viewController2
I have a button that dismisses itself with
self.dismissViewControllerAnimated(true, completion, nil)
I want to pass a string from viewController2
back to viewController1
when the view is dismissed. How do I go about doing this? Also, I am using swift.
Thanks in advance!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…