in my iphone app i have returned yes in the following method ,its worked and screens are rotating but contents are not fitting to the screen when its in the landscape mode
following is the code which i used
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
return YES;
}
following is my output 
how can i fit the contents of the screen to the screen size when its rotated,,can any one help me, thanx in advance,,
You should
reset the views framewhen the device is about to be rotated. This should be usually done inwillRotateToInterfaceOrientationmethod.You can also simply use
autoResizingMaskwhich will automatically resize the view when its superView frame changes.