In my iPhone app, I have the following code to rotate the Views with respect to the device orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
// Return YES for supported orientations
return YES;
}
When the device is rotated to landscape mode the view is not rotating.
I have tried return (interfaceOrientation == UIDeviceOrientationLandscapeLeft);
It didn’t work, how can I do this? That class contains one searchbar, table view like this
thanx in advance
1 Answer