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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:42:37+00:00 2026-06-18T02:42:37+00:00

if I do zPosition = 3; and then right away I run a method

  • 0

if I do

zPosition = 3;

and then right away I run a method that does

string = [[NSString alloc]initWithFormat:@"%i", (NSInteger)shape.zPosition];'
label.text = string;'

then the label displays an incorrect value for the zPosition.
however if I run my method after a delay then it works.

what’s going on there?
does zPosition take a moment to kick in? or am I just doing something the wrong way?

here’s a gist example of what I’m talking about https://gist.github.com/4670390

  • 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-18T02:42:39+00:00Added an answer on June 18, 2026 at 2:42 am

    Unfortunately, YES, it takes a split second.

    The answer as to “why” this is happening, is that the animation duration was implicitly being set to 0.0001 seconds in the api. Your immediate call to [self updateLabels] was actually being called before the zPosition properties were finished animating.

    This is actually a bug I’ve now tracked in C4, I’ve fixed it in the full project that’s available on github but it will be a while before this makes it into the installer / project template.

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

Sidebar

Related Questions

It seems that we can show layers and even use a different zPosition for
I have 2 buttons that need to be on the right hand side of
I need to set the text of a spark label and then position such
I've created a class method that returns a random position as an NSValue object.
Imagine you are simulating particle physics. You, then, have a position vector for each
#mydiv { position:absolute; left:0px; top:0px; width:83px; height:83px; } <div id=mydiv></div> That's my style for
first some code: I have many elements like that: <section class=item> <div class=caption> </div>
Launch a file = launch program associated with given file and automatically open that
I'm using the CSS based rollover trick that switches the background position of the
Please see the screenshot. I am trying to produce a layout that allows me

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.