I want to show a modal view via my navigation controller, and background of this view should be transparent. In the modal view controller I clear background on viewDidLoad as follow:
self.view.backgroundColor = [UIColor clearColor];
I show this view as follow:
ModalViewController *modalViewController = [[ModalViewController alloc] init];
[self.navigationController presentViewController:modalViewController animated:YES completion:nil];
As result my view is shown, but background is black. I've tried to do:
[self setModalPresentationStyle:UIModalPresentationCurrentContext];
For all my view controllers, include NavigationController. I've tried to do:
self.navigationController.providesPresentationContextTransitionStyle = YES;
self.navigationController.definesPresentationContext = YES;
However all of this doesn't work. Is it possible to implement my task, or I should show my view using another way?