I know this topic is quite popular, but I'm a little concerned about the problem in the programming language, the fact is that I still do not understand where I put the code. Ok, I will tell the whole case:

I am trying to make modal Swift a little different than usual. By clicking the button, the ViewController is displayed (after the modal type) on the screen, but with a transparent background. Only a blue view with a mark is displayed. When this ViewController is presented, it has a transparent background, but as soon as it completes the transition, it will remain on a black background. The opaque version has already been deactivated and some parameters have been tested, but nothing was found.
Can anybody help me?
Video is a test in a simulator on the case ( https://www.youtube.com/watch?v=wT8Uwmq9yqY ).
I start with the fast ones, and I still pretty much lost how to program in Xcode, I read the answer to the question that the following code has to solve this problem:
self.presentingViewController.providesPresentationContextTransitionStyle = YES; self.presentingViewController.definesPresentationContext = YES; modal.modalPresentationStyle = UIModalPresentationOverCurrentContext;
Where can I put this code?
user5046034 Oct 13 '15 at 14:01 2015-10-13 14:01
source share