tags:

views:

61

answers:

1

i have uiview with a uiviewtablecontroller added as subview, my device starts in landscape mode but tableviewcontroller is always in the portrait mode

A: 

Hi

The below method "return yes" will make orientation change if it is "return NO" the orientation will not change.Use this method in your view.

- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) orientation 
{

return YES;

}

All the best.

Warrior