Upravit

Sdílet prostřednictvím


UIFieldBehavior.CreateRadialGravityField(CGPoint) Method

Definition

Factory method to create a field that attracts objects to a point.

[Foundation.Export("radialGravityFieldWithPosition:")]
public static UIKit.UIFieldBehavior CreateRadialGravityField (CoreGraphics.CGPoint position);
static member CreateRadialGravityField : CoreGraphics.CGPoint -> UIKit.UIFieldBehavior

Parameters

position
CGPoint

Returns

Attributes

Remarks

Developers should set MinimumRadius or otherwise prevent object's from approaching position too closely, as items can be "slingshotted" off the screen otherwise.

The field vectors of a radial gravity field look like:

Applies to