• 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
CALayer -displayLayer:inContext: never called during frame/bounds animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer -displayLayer:inContext: never called during frame/bounds animation


  • Subject: CALayer -displayLayer:inContext: never called during frame/bounds animation
  • From: Daniele Margutti <email@hidden>
  • Date: Sat, 08 Jun 2013 15:04:17 +0200

Hi guys,
I need to animate the frame of a CALayer instance; during the animation I should also update/redraw the content of the layer based upon the new size (frame by frame) of it.

I've tried to watch and use -displayLayer:inContext: of CALayer (it's a delegate property) but It does not work: both with frame (it's a derived property of bounds/location/anchorPoint) and bounds animation I can't receive this message (it should be called by CALayer's internal drawInContext: method) during the animation process.

Using needsDisplayOnBoundsChange I can get it called at the end of the animation, but nothing with bounds.
It works fine with custom properties (I need to return YES on needsDisplayForKey method).

Any idea?
Is possible to force redraw of CALayer contents during bounds/frame animation?
_______________________________________________

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: CALayer -displayLayer:inContext: never called during frame/bounds animation
      • From: David Duncan <email@hidden>
  • Prev by Date: how to cache images
  • Next by Date: Re: Can't set offset of a file NSOutputStream with appending enabled
  • Previous by thread: Re: how to cache images
  • Next by thread: Re: CALayer -displayLayer:inContext: never called during frame/bounds animation
  • Index(es):
    • Date
    • Thread