Поделиться через


UICollectionViewDelegate.GetTargetIndexPathForMove Метод

Определение

При переопределении позволяет разработчику изменить окончательное расположение перемещаемого элемента. (Например, чтобы запретить переход к определенному proposedIndexPathобъекту .)

[Foundation.Export("collectionView:targetIndexPathForMoveFromItemAtIndexPath:toProposedIndexPath:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual Foundation.NSIndexPath GetTargetIndexPathForMove (UIKit.UICollectionView collectionView, Foundation.NSIndexPath originalIndexPath, Foundation.NSIndexPath proposedIndexPath);
abstract member GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath
override this.GetTargetIndexPathForMove : UIKit.UICollectionView * Foundation.NSIndexPath * Foundation.NSIndexPath -> Foundation.NSIndexPath

Параметры

collectionView
UICollectionView

Представление коллекции, в которое поступил запрос.

originalIndexPath
NSIndexPath
proposedIndexPath
NSIndexPath

Возвращаемое значение

Атрибуты

Применяется к