Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7087811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:43:12+00:00 2026-05-28T07:43:12+00:00

i am using XCode 4.2 (with storyboards) I am trying to rotate only one

  • 0

i am using XCode 4.2 (with storyboards)

I am trying to rotate only one of the views (and not all the views) but it doesn t seem to be working… either non of the views get rotated or all of them

I have checked all the supported views in the summary , and in info I made sure that the application “supported interface orientations” are all there

in the class that is related to the view I wrote the function to rotate this specific view :

-(BOOL) shouldAutoRotateToInterfactOrientation:(UIInterfaceOrientation)interfaceOrientation{
return(interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown||
interfaceOrientation != UIInterfaceOrientationPortrait||
interfaceOrientation != UIInterfaceOrientationLandscapeRight||
interfaceOrientation != UIInterfaceOrientationLandscapeLeft)
}

and still it does not rotate when I rotate the screen … any clue ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:43:13+00:00Added an answer on May 28, 2026 at 7:43 am

    Your method can be reduced to:

    - (BOOL)shouldAutoRotateToInterfactOrientation:(UIInterfaceOrientation)interfaceOrientation; {
      return YES;
    }
    

    What you want to do is have the device support orientations in all of the orientations you want, and then in the specific view’s, use the above method to allow which orientations you want for that view. So for example, if you wanted only landscape modes for a particular view, you would use:

    - (BOOL)shouldAutoRotateToInterfactOrientation:(UIInterfaceOrientation)interfaceOrientation; {
      return UIInterfaceOrientationIsLandscape(interfaceOrientation);
    }
    

    Hope that Helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm currently using XCode 3.2.4 and OS 4.2 It's been working smoothly but now
I'm working on some project for iOS 5 using Xcode 4.2. I have one
I am using xcode with emacs. But everytime I start emacs, I need to
I'm trying to run Python scripts using Xcode's User Scripts menu. The issue I'm
I'm just learning C and am using xCode for it (not sure if it
I am developing a storyboard-based application, using XCode 4.2. I'm new to storyboards, before
I'm using XCode 4.2 and have built my UI using Storyboards. I need to
I am using Xcode 4.2 to develop a storyboard application. I am trying to
I'm trying to delete a row using Xcode 4.2 and a storyboard. The Table
I am making a storyboard application using XCode 4.2 I am trying to set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.