xcode - What is the difference between "Multiple" and "Single" for View Controller Presentation? -


i've been working on os x app in xcode. option perplexes me "presentation", 2 options "single" , "multiple" attribute do?

enter image description here

so, "obvious" once used it.

basically, feature causes window displayed once, or multiple times if corresponding segue in storyboard has been triggered multiple times.

to see in action, add create storyboard view controller in it. place button on view, , additional window controller. create segue between button , window controller "show" window controller.

click on window controller , toggle between 2 presentation options. when run it, find 1 case create multiple instances of window, while other create single instance of window.

like said, obvious, had use figure out.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -