• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
block animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

block animation


  • Subject: block animation
  • From: Brian Bruinewoud <email@hidden>
  • Date: Tue, 03 May 2011 20:40:40 +1000

Hi All,

This animation doesn't code doesn't work properly:

  - (IBAction) gotClicked: (id) sender
  {
    [UIView animateWithDuration: 1.0
                          delay: 0.0
                        options: UIViewAnimationOptionCurveEaseIn
                     animations:^{
                         self.view.alpha = 0.0;
                         drawingVC.view.alpha = 0.0;
                         drawingVC.view.frame = CGRectMake(400, 400, 400, 400);
                     }
                     completion::nil];
  }

self.view.alpha is animated but nothing at all happens to drawingVC.view.

The documentation says that multiple views can be animated in the block and it doesn't say that there are any limitations as to where those views are so I'm not sure why it doesn't work. Both views are UIViews.

Having said that, I really have no mental model as to how these block based animations are implemented behind the scenes so I have no means of reasoning about these items. Can someone explain how animateWithDuration: is implemented in regards to the block? It doesn't have to be the actual implementation, just a reasonable one.

Thanks,
Brian._______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: block animation
      • From: David Duncan <email@hidden>
  • Prev by Date: UIView not loading
  • Next by Date: how to add/remove button to a cell in tableview
  • Previous by thread: Re: UIView not loading
  • Next by thread: Re: block animation
  • Index(es):
    • Date
    • Thread