0414--iOS之UICollectionViewFlowLayoutInvalidationContext类

UICollectionViewFlowLayoutInvalidationContext是iOS中用于确定是否重新计算items大小或布局位置的类。当响应布局变化或手动无效化流布局时,该类实例会被创建。它包含属性来指定是否需要重新计算items和views的尺寸及布局属性。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Class

UICollectionViewFlowLayoutInvalidationContext

A set of properties for determining whether to recompute the size of items or their position in the layout.

         --一组属性,用于确定是否需要重新计算items的大小或items在布局中的位置。
 

Declaration

class UICollectionViewFlowLayoutInvalidationContext : UICollectionViewLayoutInvalidationContext

         --继承于UICollectionViewLayoutInvalidationContex

Overview         --概览

The flow layout object creates instances of this class when it needs to invalidate its contents in response to changes. You can also create instances when invalidating the flow layout manually.

         --flow layout对象在“因为布局变化而需要无效化内容时”创建此类的实例。也可以在“手动无效化流布局时”创建实例

 

Topics             --专题

Specifying What to Invalidate               --指定什么需要被无效化

var invalidateFlowLayoutDelegateMetrics: Bool      --是否需要无效化items和view的尺寸

A Boolean indicating whether to recompute the size of items and views in the layout.       

var invalidateFlowLayoutAttributes: Bool      --是否需要重新计算布局中items和view的布局特征

A Boolean indicating whether to recompute the layout attributes for items and views in the layout.

 

Relationships

Inherits From

UICollectionViewLayoutInvalidationContext

Conforms To

See Also

Layout Updates

class UICollectionViewUpdateItem

An object that describes a single change to make to an item in a collection view.

class UICollectionViewFocusUpdateContext

A context object that stores information specific to a focus update in a collection view.

class UICollectionViewLayoutInvalidationContext

A context object that declares which parts of your layout need to be updated when the layout is invalidated.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值