With CocoaPods, just add line below to your
Otherwise, download manually and then drag DCModalSegue folder to your Xcode project.
Finally, ensure QuartzCore.framework is added to your project.
Create segue in storyboard:
- Like normal storyboard segue, control drag from one scene (or a control) to the scene you want to present.
- Select the segue type as
Segue Classfield inside the inspector.
- That's it :-)
To dismiss the presented view controller, use
[self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
[self dismissViewControllerAnimated:YES completion:nil];
There is also an unwind segue action created for you (thus no code is needed to dismiss the controller),
you can set up the dismiss action by control drag to the exit icon (see below) and select the action
- ARC only
- Unwind segue is only provided in iOS 6
- Now support only portrait iPhone
As an experimental project, there are a lot could be done better. So feel free to fork or submit an issue. :-)
Created by David Chang.
In short, it's MIT Licese. See file LICENSE for more info.