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 4092352
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T19:28:50+00:00 2026-05-20T19:28:50+00:00

I did look for possible answers but found none. my problem is that I

  • 0

I did look for possible answers but found none. my problem is that I only want one of the views in my app (which shows an image) to be in both portrait and landscape mode, while other views in portrait only.

this view is added to [[[UIApplication sharedApplication] delegate] window] as its subview.

and i set return YES in - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

and also [self.view setAutoresizingMask:UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight]; in - (void)viewDidLoad

but when i turn the device the view doesn’t rotate. please tell me where i did wrong or what more needs to be done.

  • 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-20T19:28:51+00:00Added an answer on May 20, 2026 at 7:28 pm

    As far as I know, a subview (such as the one you added) is only sent the message saying the device has rotated if the owning container view passes it along. If you use a UINavigationController or UITabBar and add your view to that it is done for you, but if you add the view directly to the window as you have it isn’t.

    EDIT: you can capture the device orientation changing yourself using UIDeviceOrientationDidChangeNotification with NSNotificationCenter.

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

Sidebar

Related Questions

First of all I did gave a look at this one. But I didn't
First of, I'm fairly new to Qt. I did look for the answer but
Did any one have luck recently register Visual studio 2008 express C# product? Look
I have a bunch of autogenerated files that look similar to the following one:
did it is possible to read the setting file permissions(Octal Notation/Symbolic Notation) using php
Did you ever use Oracle auditing features on a production db? How did that
Possible Duplicate: Using ZXing to create an android barcode scanning app I know it
I have a Java Swing application client that I want to use to consume
So I did some refactoring and two of my classes now look exactly the
I'd like to create a custom window using WPF that doesn't look like the

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.