• 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
Group CGAffineTransform Animations?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Group CGAffineTransform Animations?


  • Subject: Group CGAffineTransform Animations?
  • From: Chunk 1978 <email@hidden>
  • Date: Wed, 17 Jun 2009 04:53:05 -0400

is have this animation block with both Enlarge and Rotate, but only
one work properly (the last one listed).  what is the proper way to
group the two transforms together:

-=-=-=-
	//Animation Block
	[UIView beginAnimations:nil context:NULL];
	[UIView setAnimationDuration:1.0];
	[UIView setAnimationDelegate:self];
	[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];

	CGAffineTransform enlarge = CGAffineTransformMakeScale(1.5, 1.5);
	CGAffineTransform rotate = CGAffineTransformMakeRotation(3.14 / 2);

	square.transform = enlarge;
	square.transform = rotate;

	[UIView commitAnimations];
-=-=-=-
_______________________________________________

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: Group CGAffineTransform Animations?
      • From: Jean-Daniel Dupas <email@hidden>
  • Prev by Date: Re: I want my app to crash!
  • Next by Date: Desktop client for web application
  • Previous by thread: Re: NSImageView/NSImage question
  • Next by thread: Re: Group CGAffineTransform Animations?
  • Index(es):
    • Date
    • Thread