Transparent Background with a Modal UIViewController

Posted by Mick Walker on Stack Overflow See other posts from Stack Overflow or by Mick Walker
Published on 2010-04-05T13:34:53Z Indexed on 2010/04/05 13:53 UTC
Read the original article Hit count: 418

I have a dilema, I want to present to the user a semi-transparent view.

I found out by experimenting that if I simply pushed the transparent view to the top of my NavigationController's stack, that it would not render the transparency level I wanted. So I decided to simply add the view as a subview of the current view at the top of the stack.

This solution works, the view below is still visible, and the View is 'semi-modal'. The problem is, if the parent view inherits from UITableViewController (as mine does), then the view I 'push' onto it, does not cover the navigation bar at the top.

I really don't want to get into a situation where I am forced to enable / disable controls on the navigation bar every time I push this view, so I was wondering, if anyone knew of any solutions that I could use so that the view I push onto the UITableViewController will actually 'push over' the navigation bar?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uinavigationcontroller