Re: Core Animation animations stop prematurely at random
Re: Core Animation animations stop prematurely at random
- Subject: Re: Core Animation animations stop prematurely at random
- From: Kyle Sluder <email@hidden>
- Date: Tue, 17 May 2011 11:58:29 -0700
On Tue, May 17, 2011 at 11:35 AM, Bill Cheeseman <email@hidden> wrote:
> I agree that the explanation doesn't logically lead to a prohibition on creating layers in -initWithFrame:. That's why I initially created them there, deferring only the construction of the layer tree to -awakeFromNib. But I suffered random failures -- in fact, the application failed more often than not. The randomness is consistent with my doing something to which the phrase "undefined behavior" is often applied in Apple documentation. Now that I've moved the layer creation to -awakeFromNib, however, my application is working correctly 100% of the time.
You could also try using -makeBackingLayer. That's useful if your view
can be used both programmatically and in a nib.
--Kyle Sluder
_______________________________________________
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