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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T09:20:14+00:00 2026-05-20T09:20:14+00:00

Hi all Im trying to understand how blocks work. [UIView animateWithDuration:1 animations:^{ blueViewController.view.alpha =

  • 0

Hi all
Im trying to understand how blocks work.

[UIView animateWithDuration:1 animations:^{
 blueViewController.view.alpha = 0;
 yellowViewController.view.alpha = 0;
}];

I would love to understand how they implemented this to make a transition. As i see it the block that updates the views’s alpha to 0 can only be executed and that would result in an instant update and not a animation?.
It would properly help me understand how blocks work if someone could explain to me how they might have implemented the function.

also i think its a bit wierd that i the closure created by the block only create readonly variables. How am i then able to change the alpha without defining it with the “_block” keyword? is the “_block” only required for scaler types? (int / float ect).

  • 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-20T09:20:15+00:00Added an answer on May 20, 2026 at 9:20 am

    The magic is not the Block system, it just allows you to create and call anonymous functions. The magic is the Core Animation framework.

    The basic is that all parameters are immediately applied, but instead of redrawing everything right away, Core Animation looks for the changes and applies them over the given animation duration.

    Look into the Core Animation framework reference and the WWDC 2010 sessions 424 and 425 for deeper informations.

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

Sidebar

Related Questions

OK... I'm a VB.NET WinForms guy trying to understand WPF and all of its
I'm trying to fully understand all of Haskell's concepts. In what ways are algebraic
I am trying to understand how Boost memory mapped files work. The following code
All I am trying to do is XmlSerializer serializer = new XmlSerializer(typeof(Stack<int>)); and I
All I am currently trying implement something along the lines of dim l_stuff as
Trying to keep all the presentation stuff in the xhtml on this project and
I'm trying to redirect all requests to my domain to another domain using mod_rewrite
I'm trying to iterate all the controls on a form and enable ClearType font
I was trying to remove all the lines of a file except the last
I'm trying to get all the direct reports of a User through Active Directory,

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.