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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:33:56+00:00 2026-05-28T01:33:56+00:00

Im looking for the code necessary to fire my UILabel.transform only on a certain

  • 0

Im looking for the code necessary to fire my UILabel.transform only on a certain orientation, upside down (with good reason) My universal app only supports portrait orientation, both regular and upside down. So far so good! I have the code needed to transform the label 180 degrees (upside down/reverse text)

.H
#define degreesToRadian(x) (M_PI * (x) / 180.0)
IBOutlet UILabel *Label;

.M
Label.transform = CGAffineTransformMakeRotation(degreesToRadian(180));

The code I would like is:

When in regular portrait (home button on the bottom) the label is normal.
When in upside down portrait (home button on top, camera on bottom) the label is transformed.

Thanks in advance!

P.S. Your help on this is going to a notable good cause that I would love to share when it’s complete (few days away)

  • 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-28T01:33:56+00:00Added an answer on May 28, 2026 at 1:33 am

    You need to override willAnimateRotationToInterfaceOrientation:duration: in your UIViewController subclass. In that method, you can check the new interface orientation and set the label’s transform appropriately.

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

Sidebar

Related Questions

Here is only an example from my code. I'm looking for a good way
I'm interested in speed, not good looking code, that is why I'm using array
I've spent the morning looking for a good example of a code based (Not
Looking for code samples to access a memory map file in C#
I was looking at code in WPF which is in VB. I am trying
I am looking to code me a banner management system that has users make
Sometime when looking through code, I see many methods specify an annotation: @SuppressWarnings(unchecked) What
I am looking at code which has the correct using statements declared but yet
I was looking at code that implemented the ICloneable interface for one of the
I have been looking through code for the last 3 days, and the original

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.