UIAttachmentBehavior.CreateLimitAttachment(IUIDynamicItem, UIOffset, IUIDynamicItem, UIOffset) UIAttachmentBehavior.CreateLimitAttachment(IUIDynamicItem, UIOffset, IUIDynamicItem, UIOffset) Method

Definition

Static factory method to create attachments that limit how far two items can be from each other.

[Foundation.Export("limitAttachmentWithItem:offsetFromCenter:attachedToItem:offsetFromCenter:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static UIKit.UIAttachmentBehavior CreateLimitAttachment (UIKit.IUIDynamicItem item1, UIKit.UIOffset offsetFromCenter, UIKit.IUIDynamicItem item2, UIKit.UIOffset offsetFromCenter2);
static member CreateLimitAttachment : UIKit.IUIDynamicItem * UIKit.UIOffset * UIKit.IUIDynamicItem * UIKit.UIOffset -> UIKit.UIAttachmentBehavior

Parameters

offsetFromCenter
UIOffset UIOffset

The attachment point for item1. Values other than 0 create torque.

offsetFromCenter2
UIOffset UIOffset

he attachment point for item2. Values other than 0 create torque.

Returns

Applies to