Use the view's bounds rather than the frame in order to work properly in landscape mode.
Set an autoresizingmask for the grey layer to handle rotation to landscape mode.