Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to fix a specific orientation to a viewcontroller in IOS
    primarykey
    data
    text
    <p>I am working on an iPad app. It is to capture the image in popover and crop the image in full screen in next view. Here it consists of following screens </p> <p>1) <code>LoginViewContoller</code>(need all orientations), </p> <p>2)<code>SplitViewController</code>(need all orientations),` </p> <p>3)<code>ImageCropViewController</code>(need only landscape),</p> <p>4)<code>SettingsViewController</code>(need all orientations).</p> <p>In <code>ImageCropViewController</code> I am writing following code:</p> <pre><code>- (BOOL)shouldAutorotate { return NO; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } </code></pre> <p>I am getting the exact orientation. But Its effecting <code>LoginViewController's</code> and <code>SettingViewController's</code> Orientation also.</p> <p>In <code>LoginViewController</code> and <code>SettingViewController</code> ,i am writing following code</p> <pre><code>- (BOOL)shouldAutorotate { return YES; } -(NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape | UIInterfaceOrientationMaskPortrait | UIInterfaceOrientationMaskPortraitUpsideDown; } </code></pre> <p>While navigating from <code>SplitViewController</code> to <code>ImageCropViewController</code> ,i am initiating the <code>ImageCropViewController</code> as <code>rootViewController</code>.</p> <p>In plist I have supported orientations like this</p> <p><img src="https://i.stack.imgur.com/qmdVI.png" alt="enter image description here"> I googled it. And integrated the available codes. But I did not find any solution. Please help me. Its really killing my time.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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