ModalViewController transparent background iOS 8

Madman picture Madman · Sep 1, 2014 · Viewed 17.7k times · Source

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.

Answer

mmccomb picture mmccomb · Sep 2, 2014

Try setting the modalPresentationStyle property of the presented view controller to the new UIModalPresentationOverCurrentContext constant e.g.

[_modalViewController setModalPresentationStyle:UIModalPresentationOverCurrentContext]