• 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: Simple Flipbook Animation?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple Flipbook Animation?


  • Subject: Re: Simple Flipbook Animation?
  • From: Ashley Clark <email@hidden>
  • Date: Sat, 1 Nov 2008 14:51:12 -0500

On Nov 1, 2008, at 1:02 PM, Jeshua Lacock wrote:

On Nov 1, 2008, at 11:44 AM, Ashley Clark wrote:

Your crash is happening because you're releasing something you shouldn't be. The CGImage you're getting from the UIImage was not accessed through a Create* or Copy* function and therefore you are not responsible for it and have no need to call the CGImageRelease function.


Hmm, thanks for the tip. That is how the example I was following was written.

But I removed the line and it is still crashing on the same line of assembly code.

Do you think I need to use Create or Copy, alloc or something?

After looking at the example you were basing yours off of I see that in that example the image was being created by another function create_image(), in that case (depending on the function implementation, but probably) you would be responsible for releasing it. Here though, using the CGImage property of an UIImage, you're not.


What are the values of anim and images before you try to add them to the animator? In the code portion you posted you don't show where you're creating your "anim" object.

As well I don't see in my version of the SDK where UIAnimator is defined. If you're trying to use private API here, don't. Just set the duration on the anim object directly and add it to your CALayer. You can get the layer used by a view by sending the layer message to the view (NS or UI).

Ashley

_______________________________________________

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: Simple Flipbook Animation?
      • From: Jeshua Lacock <email@hidden>
References: 
 >Re: Simple Flipbook Animation? (From: Jeshua Lacock <email@hidden>)
 >Re: Simple Flipbook Animation? (From: Ashley Clark <email@hidden>)
 >Re: Simple Flipbook Animation? (From: Jeshua Lacock <email@hidden>)

  • Prev by Date: Re: Need help to make this method prettier
  • Next by Date: Re: Simple Flipbook Animation?
  • Previous by thread: Re: Simple Flipbook Animation?
  • Next by thread: Re: Simple Flipbook Animation?
  • Index(es):
    • Date
    • Thread