Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I don't know for sure if I got your issue right.. but if you mean with "drill-down the table view" to go deeper in a navigation controller hierachy, you can try the following..</p> <p>That's what I did in a (I think) similar situation:</p> <p>AppDelegate:</p> <p>in .h:</p> <pre><code>@property (nonatomic) BOOL shouldAutorotate; </code></pre> <p>in .m:</p> <p>// in didFinishLaunchingWithOptions:</p> <pre><code>self.shouldAutorotate = NO; </code></pre> <p>// still in .m file</p> <pre><code>// Autorotation handling - (NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { return self.shouldAutorotate ? UIInterfaceOrientationMaskAllButUpsideDown : UIInterfaceOrientationMaskPortrait; } </code></pre> <p>Navigation Controller presenting Portrait Controller</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (NSUInteger)supportedInterfaceOrientations { if (self.selectedViewController) return [self.selectedViewController supportedInterfaceOrientations]; return UIInterfaceOrientationMaskPortrait; } - (BOOL)shouldAutorotate { return YES; } </code></pre> <p>Portrait View Controller (here's also a very similar segue handling that you have):</p> <p>in viewWillAppear:</p> <pre><code>[(AppDelegate *)[[UIApplication sharedApplication] delegate] setShouldAutorotate:YES]; </code></pre> <p>rotation handling:</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (BOOL)shouldAutorotate { return NO; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } </code></pre> <p>Landscape View Controller (probably your full screen image):</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown); } - (BOOL)shouldAutorotate { return YES; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskLandscape; } </code></pre> <p>Deeper in the navigation controller hierachy (where only portrait is wanted):</p> <pre><code>- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return (interfaceOrientation == UIInterfaceOrientationPortrait); } - (BOOL)shouldAutorotate { return NO; } - (NSUInteger)supportedInterfaceOrientations { return UIInterfaceOrientationMaskPortrait; } </code></pre> <p>Looks somehow complicated, but that was the only way, I managed to get those rotation things working properly in both iOS5 and 6.</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