Как выполнить интеграционное тестирование в PHP?

Да, это возможно, вы можете использовать этот код:

    -(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
        return UIInterfaceOrientationMaskLandscape;
    }

    -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation {
        return orientation==UIInterfaceOrientationMaskLandscape;
    }

ИЛИ

Попробуйте этот метод в делетете вашего приложения

- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
    if (sglobalorientation isEqualToString:@"AllOrientation"]) {
        return UIInterfaceOrientationMaskLandscape;
    } else {
        return UIInterfaceOrientationMaskAll;
    }
}

необходимо изменить значение sglobalorientation переменной value на это значение AllOrientation до того, как вы перейдете к этому контроллеру ландшафтного вида

, и в вашем контроллере ландшафтного представления этот код появится в вашем представлении

 [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft];
    DigitalSignatureViewController *digisign = [[DigitalSignatureViewController alloc]init];
    [self presentModalViewController:digisign animated:NO];
    [self dismissModalViewControllerAnimated:NO];
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation
{
    return NO;
}

и снова, когда вы переходите к следующему контроллеру представления, измените значение строки sglobalorientation и выполните тот же шаг в следующем контроллере представления.

22
задан JoshB 28 June 2011 в 18:29
поделиться