Iphone 定向iOS故事板don';不旋转?

Iphone 定向iOS故事板don';不旋转?,iphone,objective-c,ios,ipad,Iphone,Objective C,Ios,Ipad,好吧,这可能是个很难解决的问题,但我找不到解决办法。 我将iPad UIViewController拖到情节提要上,并将方向设置为“是”。但由于某种原因,这种观点并没有旋转。顶部的状态栏正在旋转,但当您旋转iPad时,其中的视图、tableview和标签不会旋转。有人知道为什么以及如何修复它吗 - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOr‌​ientation { return

好吧,这可能是个很难解决的问题,但我找不到解决办法。 我将iPad UIViewController拖到情节提要上,并将方向设置为“是”。但由于某种原因,这种观点并没有旋转。顶部的状态栏正在旋转,但当您旋转iPad时,其中的视图、tableview和标签不会旋转。有人知道为什么以及如何修复它吗

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOr‌​ientation { return YES; } 

状态栏的旋转可能意味着某些模态序列没有正确地解除,只是检查一下。此外,如果它位于导航控制器中,请确保堆栈中的所有视图都已设置为返回“是”

状态栏旋转可能意味着某些模态序列未正确解除,请检查。此外,如果它位于导航控制器中,请确保堆栈中的所有视图都已设置为返回“是”

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    // Return YES for supported orientations

    if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) {
        //return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
        if ((interfaceOrientation == UIInterfaceOrientationLandscapeLeft) || (interfaceOrientation == UIInterfaceOrientationLandscapeRight)) {
           //implement your code 
        return (interfaceOrientation != UIInterfaceOrientationLandscapeRight);
    } else {

        return YES;
    }
}
我想这对你会有帮助的

我想这对你会有帮助的