What

A blog about user interfaces, mobile apps, code, and critique by a freelance iOS designer and developer.

Subscribe
Navigation
« Redesigning Quora - The TabBar | Main | SMHeadedList »
Tuesday
Oct112011

Transparent ModalViewController

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.

 

https://gist.github.com/1279713

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>