I'm developing an iPhone app that (only) shows a datepicker when the user is to select a date. When the datepicker is shown, the rest of the screen will dim, so there's more visual focus on the date picker. This effect is currently achieved by adding a partially opaque black button at the size of the screen, and adding the `datePicker` as a subview. No problem so far.

The problem is that the statusbar isn't affected. Because my statusbar is white, it only becomes more notable as the rest of the screen darkens. I want the statusbar to be dimmed / darkened as well. 

I have seen an app that exactly does what I want. I searched a lot, but I don't know how to achieve it. Is there any way to set the opacity of the statusbar or to overlap it with another view?

Any help is appreciated.