Edytuj

Udostępnij za pośrednictwem


UIView.SetAnimationDelegate(NSObject) Method

Definition

Allows the app developer to create a custom animation delegate.

[Foundation.Export("setAnimationDelegate:")]
public static void SetAnimationDelegate (Foundation.NSObject del);
static member SetAnimationDelegate : Foundation.NSObject -> unit

Parameters

del
NSObject

Delegate object used to define the methods registered using the "SetAnimationDidStopSelector".

Attributes

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

This method, with SetAnimationWillStartSelector(Selector) and SetAnimationDidStopSelector(Selector) allows the application developer to register a custom delegate object for animations created using the now-discouraged BeginAnimations(String, IntPtr) / CommitAnimations() method, rather than the preferred block-based animations.

Applies to