В корне контроллера навигации, где находится uitableview, я написал эту функцию
-(void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:
(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration
{
UIInterfaceOrientation orient=self.interfaceOrientation;
if (orient==UIInterfaceOrientationLandscapeLeft || orient==UIInterfaceOrientationLandscapeRight)
{
viewtwo *two=[[viewtwo alloc] initWithNibName:@"viewtwo" bundle:nil];
[self.navigationController pushViewController:two animated:YES];
}
[UIView commitAnimations];
}
и в viewtow viewcontroller я написал эту функцию для всплывающего окна навигации
-(void)willAnimateSecondHalfOfRotationFromInterfaceOrientation:
(UIInterfaceOrientation)fromInterfaceOrientation duration:(NSTimeInterval)duration
{
UIInterfaceOrientation orient=self.interfaceOrientation;
[UIView beginAnimations:@"move Button" context:nil];
if (orient==UIInterfaceOrientationPortrait || orient==UIInterfaceOrientationPortraitUpsideDown)
{
[self.navigationController popViewControllerAnimated:YES];
}
[UIView commitAnimations];
}
и это не было проблемой, я имею в виду, что размер uitableview был таким же, как и раньше.