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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T11:07:17+00:00 2026-06-02T11:07:17+00:00

I am having one issue about CATransform3D. I have a view A, which contains

  • 0

I am having one issue about CATransform3D.

I have a view A, which contains a label B. B’s layer position is the center of A. B is used to display notification messages. I want to rotate A by 180 degree, of course the text in B will be upside down. So I have to rotate B by 180 degree too. Everything seems straight forward and actually in the simulator it works fine.

But when I loaded on the device, A and B did rotate, but B’s position was changed. Now I can only see half of B, the other half is out of A.

My guess is that, when rotating A, because B is related to A’s coordinate system, which was flipped 180 degree, B’s location is changed.

But I want to know if anybody has ideas how to fix this problem or if you guys have better ways to approach.

Thank you very much.

UPDATE

I still can’t figure out why B’s position gets shifted, but I came up with another method to implement the same animation. A little bit tricky.

The key is animation.autoreverse, we know that when you rotate the label’s super view by Pi, the text in the label will be rotated upside down. So what I did was rotate the super view by Pi/2, keep the same duration and set autoreverse = YES, what it will do is that it will rotate the super view by Pi/2, then rotate it back to the initial state. The result turns out that the view isn’t get rotated at all, but for the user’s vision, it is rotated.

  • 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-02T11:07:19+00:00Added an answer on June 2, 2026 at 11:07 am

    I’ve found that subLayers and subviews of views don’t always respond well to doubled animations (esp. alpha and center changes). If you must (as it is a little more expensive than normal), use UIViewAnimationOptionAllowsAnimatedContent, which will force a redraw instead of a ‘snapshot’ that is animated.

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

Sidebar

Related Questions

I'm having an issue bending my head around this one. I have a table
Hi I have come up with a small design but im having one issue
We're having an issue on one of our fairly large websites with spam bots.
I'm having an issue with one of my controller's AJAX functionality. Here's what I
I am having issues with one of my outputs in my program. The issue
Having an issue with traversing in jQuery.. hopfully an easy one..but I'm banging my
I'm having an issue setting up one of my projects in TeamCity (v4.0), specifically
One of my users is having an issue when trying to open an Excel
I have a problem which seems very similar to the one described in http://markmail.org/message/6rlrzkgyx3pspmnf
We host about 20 separate web applications and counting, each having atleast one unique

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.