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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:25:25+00:00 2026-05-25T13:25:25+00:00

When I rotate my app the background image will not rotate and I wish

  • 0

When I rotate my app the background image will not rotate and
I wish that my background image will rotate.
The content do changes the orientation but the background image stays and will not rotate.

Any ideas on a go around?

Thanks.

  • 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-25T13:25:26+00:00Added an answer on May 25, 2026 at 1:25 pm

    The idea is to apply a graphics “transform” to modify your image when the device is rotated. See this answer here… In your image controller, add the following code (where backgroundImage is a property containing your image.

    - (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation 
                                    duration:(NSTimeInterval)duration {
    
        if (toInterfaceOrientation == UIInterfaceOrientationLandscapeLeft) {  
            backgroundImage.transform = CGAffineTransformMakeRotation(M_PI / 2);
        }
        else if (toInterfaceOrientation == UIInterfaceOrientationLandscapeRight){
            backgroundImage.transform = CGAffineTransformMakeRotation(-M_PI / 2);
        }
        else {
            backgroundImage.transform = CGAffineTransformMakeRotation(0.0);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem is that, when screen changes orientation, textview background color is gone. here is
our app got rejected, becouse the app does not rotate in upside down orientation.
I am trying to rotate an image in OpenCV. I've used this code that
In a split-view-based iPad app I'm using a custom background image in my navigation
I have a navigation driven app. I need that app to rotate. The UINavigationController
How can I made my app to allow only the landscape orientation but both
I'm writing an iPhone app that (like most apps) supports auto-rotation: You rotate your
I am creating an app and everything is going smooth but when I rotate
I have seen some app, they are able to scale and rotate the image
I could rotate my tabbarcontroller app in every orientation previously - however - as

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.