How to work with the Unwind Segue storyboard on Mac OS X

I have a good understanding of how to work with Storyboard, Segues and Unwind-Segues on iOS. In order to port my app to OS X, I need to rewrite the UI and do it using OS X storyboard. However, the Unwinding-Mechanism from iOS doesn't seem to be the same as it is on iOS. How to unwind a ViewController scene in Mac OS X. Where is this "Output" -Button in the ViewController?

+3


source to share


1 answer


Unlike iOS, where the screen is real estate. We have a lot of space on the Mac. You see, most of the inline segments are just a way to show new dialogue. And when you're done with that. You don't really need to go back anywhere, all you need is a way to close this dialogue.

To unleash things a little further, instead of unwinding that requires picking from a different controller. They recommend that we use dismissController:

from the view controller that we want to close. This method will reject the view controller using the same segue animator that presented it.



-(IBAction)backDidTap:(id)sender {
    [self dismissController: nil];
} 

      

In other words, it is one step of unwinding.

+2


source







All Articles