共用方式為


UITableView.PerformBatchUpdates(Action, Action<Boolean>) 方法

定義

套用並同時以動畫顯示 的 UITableView 多個操作。

[Foundation.Export("performBatchUpdates:completion:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.WatchOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual void PerformBatchUpdates (Action updates, Action<bool> completion);
abstract member PerformBatchUpdates : Action * Action<bool> -> unit
override this.PerformBatchUpdates : Action * Action<bool> -> unit

參數

updates
Action

要執行的更新。

這個參數可以是 null

completion
Action<Boolean>

更新完成之後要執行的處理常式。 接受布林值,告知所有動畫是否都已完成。

這個參數可以是 null

屬性

適用於