Tuesday, October 18, 2016

Present a transparent background ViewController easily from iOS 8

Before iOS 8, when you think you can simply present a transparent background color view controller, then you just get disappointed.  After days struggling you give up and write your own one. That's true, iOS havn't that.

But from iOS 8, you can present a transparent background color viewcontroller as you usual do, by adding one more magic code.


myModalViewController.modalPresentationStyle = UIModalPresentationStyle.overCurrentContext

then present it. Done :)

No comments:

Post a Comment