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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:34:27+00:00 2026-05-11T13:34:27+00:00

I understand you can specify a landscape, for the entire application but what if

  • 0

I understand you can specify a landscape, for the entire application but what if it’s partially in landscape and partially in portrait.

Currently I have some views that are basically Images. These images have been rotated so that the user knows certain sections of the application are going to be in Landscape mode. All my UILabels are also rotated to give this effect as well.

My question is, is there a better way to handle this. Is there a way to set the orientation programmatically at run time? In which case I would no longer need to rotate my images/uilabels.

Just to clarify, I do not need auto rotation functionality, the way that it is being implemented now is captures all the functionality I want to include in the app but I just wanted to know if there is a less cumbersome way of handling landscape/portrait views within the same application.

  • 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. 2026-05-11T13:34:27+00:00Added an answer on May 11, 2026 at 1:34 pm

    You can force rotation at any time by calling;

    UIApplication *application = [UIApplication sharedApplication];     [application setStatusBarOrientation: UIInterfaceOrientationWHATEVER animated:NO]; 

    My current application is primarily landscape, but has a few portrait views. In the view controllers corresponding to views the user should be able to rotate, I am allowing the rotation but preventing animation. This gives you a switch to another view in your NIB, without any weird slide-off-the-screen screwyness that normally happens is you pile on a view during the animation.

    Hopefully you find this helpful!

    - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { if (interfaceOrientation == UIInterfaceOrientationPortrait) {     rotatingToPortrait = YES;     [UIView setAnimationsEnabled:NO];     return YES; } else if (interfaceOrientation == UIInterfaceOrientationLandscapeLeft || interfaceOrientation == UIInterfaceOrientationLandscapeRight) {     rotatingToPortrait = NO;     [UIView setAnimationsEnabled:NO];     return YES; } // Catch upside-down return NO; }  - (void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation { [UIView setAnimationsEnabled:YES]; if (rotatingToPortrait) {     // Swap in portrait view here } else {     // Swap it out here } } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I understand in Entity Framework you can specify relationships that need to be joined
I'm currently trying to understand some of the fundamentals with LINQ. I have been
I understand that I can specify system properties to Tomcat by passing arguments with
I understand that when fetching an atom feed, you can specify the number of
I've written an method that does some graphics calculations. There, you can specify a
I understand I can use decorators and filters, but then wouldn't I have to
I can understand the difference between a signed char and an unsigned one. But
As you can understand from title, i modified Settings.cs file.Added some properties, some code
So far I can understand HTML.ActionLink and URL.RouteURL but still trying to absorb where
Can someone please explain with example that I can understand about the difference between

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.