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


UICollectionViewController.GetTargetContentOffset Метод

Определение

При переопределении позволяет разработчику изменять смещение содержимого для изменений макета и анимации.

[Foundation.Export("collectionView:targetContentOffsetForProposedContentOffset:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual CoreGraphics.CGPoint GetTargetContentOffset (UIKit.UICollectionView collectionView, CoreGraphics.CGPoint proposedContentOffset);
abstract member GetTargetContentOffset : UIKit.UICollectionView * CoreGraphics.CGPoint -> CoreGraphics.CGPoint
override this.GetTargetContentOffset : UIKit.UICollectionView * CoreGraphics.CGPoint -> CoreGraphics.CGPoint

Параметры

collectionView
UICollectionView

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

proposedContentOffset
CGPoint

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

Атрибуты

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