Day 47: Stanford CS193p – Modal Segues
Modal View Controllers
a way of segueing that takes over the screen
alerts and action screens are done modally
default coming up and down from bottom of screen
do block UI to do just this one thing
Modal is not ideal for many situations for segueing
Went over popovers, form sheet, and others.
prepare for segue just like any segue
Hearing back from a Modally segue-to View Controller:
Unwind always has a dismissal
How to dismiss a view controller:
the presenting view controller needs to dismiss, not the presented.
func dismissViewConrollerAnimated(Bool, completion: () -> Void)
How is modal view animated onto screen?
.CoverVertical //the default
.PartialCurl //only if presenter’s in full screen
The demo for this lecture was an extension of the Trax app, adding some nifty modal segues to the app. There was a lot covered in the demo and would be silly to try and take detailed notes of it all. It is definitely an app project I will be playing with, maybe even adding some of the features to a larger app. Maps are awesome, so why not!?