http://nginx.org/ru/docs/http/ngx_http_secure_link_module.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SomeModalViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"SomeModalViewControllerID"]; | |
| vc.providesPresentationContextTransitionStyle = YES; | |
| vc.definesPresentationContext = YES; | |
| vc.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; | |
| vc.modalPresentationStyle = UIModalPresentationOverCurrentContext; // UIModalPresentationPopover | |
| [self presentViewController:vc animated:YES completion:nil]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class YourCustomViewController: UIViewController { | |
| static func storyboardInstance() -> YourCustomViewController? { | |
| // if your storyboard's name same as VC name | |
| let storyboard = UIStoryboard(name: String(describing: self), bundle: nil) | |
| // make concrete storyboard as initial to use this method | |
| // else, use instantiateViewController(withIdentifier: _ ) | |
| return storyboard.instantiateInitialViewController() as? YourCustomViewController | |
| } | |
| } |