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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T02:08:46+00:00 2026-05-15T02:08:46+00:00

I have this View class. It adds subviews to itself and then I want

  • 0

I have this View class. It adds subviews to itself and then I want to do a CATransform3DMakeRotation on one of them (the last one added with addSubiew). Its on top but as soon as the animation starts it is underneath the oder views. Here is my CATransform3DMakeRotation code:

    CABasicAnimation *topAnim = [CABasicAnimation animationWithKeyPath:@"transform"];
topAnim.duration=3.3;
topAnim.repeatCount=0;
topAnim.fromValue = [NSValue valueWithCATransform3D:CATransform3DMakeRotation(0.0, 0, 0, 0)];
float f = DegreesToRadians(180);  // -M_PI/1;
topAnim.toValue=[NSValue valueWithCATransform3D:CATransform3DMakeRotation(f, 1,1, 0)];
//topAnim.delegate = self;
topAnim.removedOnCompletion =NO;
topAnim.fillMode = kCAFillModeForwards;
[[KuvertLasche layer] addAnimation:topAnim forKey:@"flippy"];

What am I doing wrong?
Edit: This view is in a subview with a bunch of other views:

  • self.view
  • letterView (with 3 subviews. ontop of them is the KuvertLasche)

if i take it out of the letterView and place it on self.view above the letterView it goes half way and then goes under the other views. Very strange. Any advice?

  • 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-15T02:08:47+00:00Added an answer on May 15, 2026 at 2:08 am

    If I understand you correctly, when you start the animation parts of your view are disappearing under other views. This is happening because the rotation you are applying is occurring in 3-D about a diagonal line midway between the X and Y axes. As your view flips in 3-D, part of it will be physically lower than the other views.

    To prevent this, you can change the position in Z of the other views by setting their layer’s zPosition property to a large enough positive value, or by setting this view’s layer’s zPosition to a large negative (unless I have my signs mistaken for Core Animation Z ordering).

    An example of this for your view’s layer would be

    KuvertLasche.layer.zPosition = -30.0f;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this class: class View(object): def main_page(self, extra_placeholders = None): file = '/media/Shared/sites/www/subdomains/pypular/static/layout.tmpl'
I have this view (DetailsContainer, first class in code section of this question) with
Let's say I have some classes like this: abstract class View(val writer: XMLStreamWriter) {
I have this code for my soundboard, public class soundboardActivity extends Activity { View
I have a view model that looks like this public class ViewModelRound2 { public
Say I have a class ObjectA (a view controller for example), that does this
I'm having trouble figuring this one out. In my view I have a dropdownlist
I have this view @model IEnumerable<ViewModelRound2> ... <snip> ... @{ using (Html.BeginForm(new { round1Ring3Bids
How can i dynamically load a Partial View? I mean I have this view,
I have this Haml view: !!! strict %html{:xmlns => http://www.w3.org/1999/xhtml} %head %meta{:content => text/html;

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.