Opened old project in Xcode 6 and found issue that background is not transparent in presented view controller. I have used solution in the topic below and it worked so far in ios7. iOS : ModalView with background transparent?
Please advice how to deal with iOS 8.
Try setting the modalPresentationStyle property of the presented view controller to the new UIModalPresentationOverCurrentContext constant e.g.
[_modalViewController setModalPresentationStyle:UIModalPresentationOverCurrentContext]
mmccomb's solution eventually worked for me, but I had to tweak a couple of things. Hopefully these details help someone:
1) I had to set the property of the presented view controller from the presenting view controller, like this:
MyViewController *myVc = [segue destinationViewController];
[myVc setModalPresentationStyle:UIModalPresentationOverCurrentContext];
Setting the presentation style from within the presented VC's viewDidLoad didn't work.
2) I was using a storyboard, and I had to go into the segue properties and set the Presentation style to Default. Setting any other value gave me a black background.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With