Re: -[UIView actionForLayer:forKey:] returns NSNull
Re: -[UIView actionForLayer:forKey:] returns NSNull
- Subject: Re: -[UIView actionForLayer:forKey:] returns NSNull
- From: David Duncan <email@hidden>
- Date: Tue, 3 Mar 2009 12:06:23 -0800
On Mar 3, 2009, at 9:15 AM, BJ Homer wrote:
The problem is that, as near as I can tell, UIView's implementation
of actionForLayer:forKey: returns an NSNull.
Am I missing something here, or is a UIView's layer's actions
dictionary only usable if you're subclassing UIView?
By default UIKit disables layer animations so that property changes to
UIViews occur instantly. If you wrap your property changes in a
+beginAnimations:context:/+commitAnimations block however, then UIKit
will stop blocking animations and actionForLayer:forKey: should start
returning something else (I'm pretty certain nil, but I haven't looked
at this specifically).
--
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