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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to