views:

292

answers:

1

Hi, I have a landscape view which is activated via listening for orientation notifications and then presenting a modal view controller.

However, it's giving me some grief.

It seems whatever I do I just can't seem to get landscape bounds.

super.view.bounds is {{0, 0}, {320, 480}} portrait, even though it is drawing at the correct orientation.

Help me please! Close to cardiac arrest...

A: 

It turns out that as my modal controller was a navigation controller, the correct bounds could be reached via:

CGRect bounds = self.navigationController.view.bounds;
Tricky