• 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
Re: NSImageViews, Block Animation and Frame by Frame Image Swapping
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImageViews, Block Animation and Frame by Frame Image Swapping


  • Subject: Re: NSImageViews, Block Animation and Frame by Frame Image Swapping
  • From: James Miller <email@hidden>
  • Date: Wed, 15 Sep 2010 12:38:42 -0600

Great. That helps. So can you point me to a technical note with an overview and/or examples of the new block based animations?

On Sep 15, 2010, at 9:56 AM, David Duncan wrote:

> On Sep 14, 2010, at 9:42 PM, James Miller wrote:
>
>> With Apple recommending block-based animation of UIImageViews, I'm not quite grasping how to take older frame-by-frame animation code like this:
>>
>> NSArray *playerImagesRight = [NSArray arrayWithObjects: [UIImage imageNamed:@"p1.png"], [UIImage imageNamed:@"p2.png"],[UIImage imageNamed:@"p3.png"],[UIImage imageNamed:@"p4.png"],nil];
>> [playerImage setAnimationImages:playerImagesRight];
>> [playerImage setAnimationDuration:.5];
>> [playerImage setAnimationRepeatCount:-1];
>> [playerImage startAnimating];
>>
>> and turn it into a block animation with the whole "[UIImageView beginAnimations:nil context:NULL]" routine?
>
> Thats because you are mixing techniques. The method you are using with UIImageView are specific to UIImageView and accomplishing the task that you are trying to do and have nothing to do with the general animation techniques. Also +[UIView beginAnimations:context:] isn't the new block based animation routines – those are the +[UIView animateWithDuration:*] and +[UIView trasition*] methods. +[UIView beginAnimations:context:] is the old method from 2.0.
> --
> David Duncan
>




"The world is divided into people who do things and people who get the credit. Try, if you can, to belong to the first class. There's far less competition."

_______________________________________________

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: NSImageViews, Block Animation and Frame by Frame Image Swapping
      • From: David Duncan <email@hidden>
References: 
 >NSImageViews, Block Animation and Frame by Frame Image Swapping (From: James Miller <email@hidden>)
 >Re: NSImageViews, Block Animation and Frame by Frame Image Swapping (From: David Duncan <email@hidden>)

  • Prev by Date: Re: NSOutlineView Dazed and Confused for Drag and Drop
  • Next by Date: Re: NSOutlineView Drag and Drop
  • Previous by thread: Re: NSImageViews, Block Animation and Frame by Frame Image Swapping
  • Next by thread: Re: NSImageViews, Block Animation and Frame by Frame Image Swapping
  • Index(es):
    • Date
    • Thread