Transitions and data transfer between Viewcontroller
Values can be passed forward,
The reverse pass value.
Note the position of the method when passing the value in reverse:
Https://github.com/urmyfaith/GRDBUsage/blob/master/GRDBUsage/ViewControllers/MainTableViewController.swift#L66-L86
Complete using Storyboard+segue, which was previously done using pure code.
There's an example on GitHub: Https://github.com/urmyfaith/GRDBUsage
The following article is from: https://www.andrewcbancroft.com/2016/02/22/fade-views-inout-with-fadeable-a-swift-protocol-extension/
Don't translate, look at the film is good.
Viewed on YouTube a few hands-on, video is not clear, is simply misleading.
Or look at Apple's official documentation, which is quite clear:
xcdoc://?url=developer.apple.com/library/prerelease/ios/featuredarticles/viewcontrollerpgforiphoneos/ Usingsegues.html#//apple_ref/doc/uid/tp40007457-ch15-sw8
http://developer.apple.com/library/prerelease/ios/featuredarticles/ViewControllerPGforiPhoneOS/ Usingsegues.html#//apple_ref/doc/uid/tp40007457-ch15-sw8
Transitions and data transfer between Viewcontroller