• 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: UIImageView Animation Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIImageView Animation Question


  • Subject: Re: UIImageView Animation Question
  • From: David Duncan <email@hidden>
  • Date: Thu, 26 Nov 2009 22:27:39 -0800

On Nov 26, 2009, at 11:31 AM, Philip Vallone wrote:

> Hi David,
>
> Thanks for the reply. When I remove the reference to UIGraphicsGetCurrentContext() my Image doesn't drop in.
>
> Removed:
>
> CGContextRef context = UIGraphicsGetCurrentContext();
> [UIView beginAnimations:@"moveImageDown" context:context];
>
> Thoughts?


I said to remove the call to UIGraphicsGetCurrentContext(), you need the call to +beginAnimations:context: :).

The context parameter for beginAnimations:context: is just meant as a token for you to use should you use the callbacks that let you know about the progress of the animation. The value is completely arbitrary, and in most cases will be a pointer to some class or data structure of your own design. If you don't need the context, then feel free to pass NULL (which given the circumstances around which you are calling UIGraphicsGetCurrentContext() is likely the value you are already passing).
--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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

References: 
 >UIImageView Animation Question (From: Philip Vallone <email@hidden>)
 >Re: UIImageView Animation Question (From: Philip Vallone <email@hidden>)
 >Re: UIImageView Animation Question (From: David Duncan <email@hidden>)
 >Re: UIImageView Animation Question (From: Philip Vallone <email@hidden>)

  • Prev by Date: Re: How to remove all objects from a NSTreeController ?
  • Next by Date: Re: How to remove all objects from a NSTreeController ?
  • Previous by thread: Re: UIImageView Animation Question
  • Next by thread: Re: UIImageView Animation Question
  • Index(es):
    • Date
    • Thread