Tuesday
Oct112011
Transparent ModalViewController
Tuesday, October 11, 2011 at 07:02PM Working on a new app, I wanted to have a membership card slide up and dim the background of the current view. Since the card has a few features, and can be presented from multiple view controllers, I decided to present it as a modal view.
Although modal views (on iOS) can't have transparent backgrounds, because the parent view is no longer drawn. The solution? Take a screenshot and put it behind the card. It's fast and simple.


Reader Comments