Tutorial by Examples

From the Apple documentation: A UIStoryboardSegue object is responsible for performing the visual transition between two view controllers. In addition, segue objects are used to prepare for the transition from one view controller to another. Segue objects contain information about the view contro...
PrepareForSegue: func prepareForSegue(_ segue:UIStoryboardSegue, sender sender:AnyObject?) Notifies the view controller that a segue is about to be performed Parameters segue: The segue object. sender: The object that initialized the segue. Example in Swift Perform a task if the ident...
ShouldPerformSegueWithIdentifier: func shouldPerformSegueWithIdentifier(_ identifier:String, sender sender:AnyObject?) -> Bool Determines whether the segue with the specified identifier should be performed. Parameters Identifier: String that identifies the triggered segue Sender: The...
Unwind Segues Unwind Segues give you a way to “unwind” the navigation stack and specify a destination to go back to. The signature of this function is key to Interface Builder recognizing it. It must have a return value of IBAction and take one parameter of UIStoryboardSegue. The name of the ...
PerformSegueWithIdentifier: func performSegueWithIdentifier(_ identifier:String, sender sender:AnyObject?) Initiates the segue with the specified identifier from the current view controller's storyboard file Parameters Identifier: String that identifies the triggered segue Sender: The ob...

Page 1 of 1