Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Yes this is possible, you can use this code:</p> <pre><code> -(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { return UIInterfaceOrientationMaskLandscape; } -(BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)orientation { return orientation==UIInterfaceOrientationMaskLandscape; } </code></pre> <p>OR</p> <p>Try this method in your app delegate </p> <pre><code>- (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { if (sglobalorientation isEqualToString:@"AllOrientation"]) { return UIInterfaceOrientationMaskLandscape; } else { return UIInterfaceOrientationMaskAll; } } </code></pre> <p>you need to change the variable value sglobalorientation to that string value AllOrientation before you move to that Landscape view controller</p> <p>and in your Landscape view controller, use this code in your view will appear</p> <pre><code> [[UIApplication sharedApplication] setStatusBarOrientation:UIInterfaceOrientationLandscapeLeft]; DigitalSignatureViewController *digisign = [[DigitalSignatureViewController alloc]init]; [self presentModalViewController:digisign animated:NO]; [self dismissModalViewControllerAnimated:NO]; - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return NO; } </code></pre> <p>and again when you move to next view controller change the sglobalorientation string value and follow the same step in your next view controller.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload