Using storyboard this is very easy. You just drag the action to "Exit". But how should I call it from my code?
相关问题
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
- “Zero out” sensitive String data in Swift
- Get the NSRange for the visible text after scroll
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
- didBeginContact:(SKPhysicsContact *)contact not in
- Attempt to present UIAlertController on View Contr
I used
[self dismissViewControllerAnimated: YES completion: nil];
which will return you to the callingViewController
.Backwards compatible solution that will work for versions prior to ios6, for those interested:
FYI: In order for @Vadim's answer to work with a manual unwind seque action called from within a View Controller you must place the command:
inside of the overriden class method viewDidAppear like so:
If you put it in other ViewController methods like viewDidLoad or viewWillAppear it will be ignored.