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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T14:01:19+00:00 2026-06-13T14:01:19+00:00

Possible Duplicate: Can I rotate a UIView without the black bars? I want the

  • 0

Possible Duplicate:
Can I rotate a UIView without the black bars?

I want the labels on my UIView to rotate (and they do) but I’ve set the background to a color other than black. When I rotate you can see the view’s rectangle rotate against a black background. How can I keep the UIView‘s background still yet allow the rest of the subviews to rotate normally? And what is that black background behind everything? Do I have access to it?

  • 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-06-13T14:01:20+00:00Added an answer on June 13, 2026 at 2:01 pm

    I’m not sure I fully understand the question. What I think your question is (if I’m misunderstanding please clarify where I’m getting the question wrong):

    • You have a UIView that is the same size as the device’s screen.
    • You want to rotate that view.
    • When you rotate that view the background of the view’s parent view can be seen.

    I think the only ways to resolve this are either:

    A) Make the view you’re rotating larger than the screen so that when you rotate the parent view isn’t visible. If you do this make sure the parent view isn’t set to clip it’s subviews otherwise you won’t see any difference after resizing.

    OR

    B) Make the parent view’s background color match the color of the view you’re rotating. If you don’t want to permanently alter the background color of the parent view you can always change the color when you start the animation and revert to the original color when done.

    P.S. – I think the “black background behind everything” is the background color of your app’s UIWindow. If you want to change that you can do the following (assuming your app delegate has a window property defined but if you used one of the standard Xcode templates to create your app it should):

    UIWindow* window = [[UIApplication sharedApplication].delegate window];
    [window setBackgroundColor:<Some UIColor>];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Can someone Explain this jQuery code? I have posted this before, but
Possible Duplicate: Can I set a property value with Reflection? How do I set
Possible Duplicate: Can we solve the table row background image problem, in chrome, in
Possible Duplicate: Can I set a breakpoint on 'memory access' in GDB? I have
Possible Duplicate: Can I “multiply” a string (in C#)? I want to achieve this
Possible Duplicate: Can set any property of Python object In [67]: obj = object()
Possible Duplicate: Objective C: How can you rotate text for UIButton and UILabel? I
Possible Duplicate: Can C# apps run without the .NET framework? How can I convert
Possible Duplicate: Can I change the <td> background if a field result is great
Possible Duplicate: Can I export and import Visual Studio 2010-extensions? I want to reinstall

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.