views:

1445

answers:

4

Hi

I am developing a game in which I am using Landscape mode I have total 4 view. 2 views are properly coming in Landscape mode. But in third view I have UITable and Navigation bar. I can able to rotate table in landscape mode but not able to transform Navigation bar and Navigation controller. Navigation bar and Navigation Controller also have Button on it. It also not get transformed. So can anyone have the solution on this. :)

+1  A: 

Transform the nagvigation controller's navigation bar by rotaiong it with 90 degree. Also you might require to set the navigation bar center and frame for setting the proper width to fit with landscape mode..it worked for me :) hope it helps you too.

Snehal
+1  A: 

In UIViewController documentation's Class:

Handling Rotations

interfaceOrientation property
– shouldAutorotateToInterfaceOrientation:
– rotatingFooterView
– rotatingHeaderView
– willRotateToInterfaceOrientation:duration:
– willAnimateFirstHalfOfRotationToInterfaceOrientation:duration:
– willAnimateSecondHalfOfRotationFromInterfaceOrientation:duration:
– didRotateFromInterfaceOrientation:

hope this helps you too.

A.

Alberto
Thank you for your answer it works
Jyotsna
A: 

Snehal, are you still monitoring this question?

My attempts to rotate a navigation bar by 90 degrees have never worked for me. Could you post the code that you used to accomplish this?

Thanks, /Steve

We just used - (BOOL)shouldAutorotateToInterfaceOrientation(UIInterfaceOrientation) interfaceOrientation { return YES;}
Jyotsna
A: 

Take a look at my sample-code: link text

strange99