Embed segues is an embedded transition that embeds an MVC into another MVC, which is simple to use.
Just put the MVC that needs to be embedded in the other MVC, the method of handling the segue is not different from other segue, but one thing must be noted, in Prepareforsegue, the embedded MVC outlet is not initialized, So do not access the properties of the outlet.
Use the following to drag a container View into the following style:
Then drag into the scene, place it in the appropriate position, and adjust the constraints:
This view is only for resizing and positioning, and the embedded controller is automatically connected to the controller.
Let's simply show it a picture.
Note The order of MVC, embedded MVC's segue need to be set in the controller that is embedded in the MVC, although they appear to be together, be sure to pay attention.
The effect, although it looks like a simple imageview, but in fact it is a controller, the function is very powerful.
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
"We all love Paul Hegarty." Stanford IOS8 public class personal note Embed segues