Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Application doesn't oriented

Tags:

ios

iphone

ipad

My application doesn't oriented even if I use

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Override to allow orientations other than the default portrait orientation.
    return YES;
}

the only thing I do is to hide the lower tab bar using

SearchScreen.hidesBottomBarWhenPushed = YES ;

Any idea how to fix that

like image 429
AMH Avatar asked Aug 03 '26 02:08

AMH


1 Answers

Some ideas:

  • Are the "Supported Device Orientations" set properply?
  • Maybe a parent ViewController is not allowing interface orientation?
  • If testing on a device: Is it "orientation locked"?

Setting 'Supported Device Orientations' inside Info.plist:

<key>UISupportedInterfaceOrientations</key>
<array>
    <string>UIInterfaceOrientationPortrait</string>
    <string>UIInterfaceOrientationLandscapeLeft</string>
    <string>UIInterfaceOrientationLandscapeRight</string>
</array>
like image 194
dom Avatar answered Aug 05 '26 19:08

dom



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!