UICollectionView.DeleteSections(NSIndexSet) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
从 UICollectionView中删除一个或多个节。
[Foundation.Export("deleteSections:")]
public virtual void DeleteSections(Foundation.NSIndexSet sections);
abstract member DeleteSections : Foundation.NSIndexSet -> unit
override this.DeleteSections : Foundation.NSIndexSet -> unit
参数
- sections
- NSIndexSet
一个 NSIndexSet ,指定要删除的节。
- 属性
注解
删除后, UICollectionView 将根据需要对布局进行动画处理。
如果应用程序开发人员希望在没有单独的动画的情况下协调多个更新,则可以使用 PerformBatchUpdates(Action, UICompletionHandler) 方法。