다음을 통해 공유


UITableView.InsertSections(NSIndexSet, UITableViewRowAnimation) 메서드

정의

작업에 애니메이션 효과를 주는 옵션을 사용하여 테이블 뷰에서 섹션(또는 섹션)을 삽입합니다.

[Foundation.Export("insertSections:withRowAnimation:")]
public virtual void InsertSections (Foundation.NSIndexSet sections, UIKit.UITableViewRowAnimation withRowAnimation);
abstract member InsertSections : Foundation.NSIndexSet * UIKit.UITableViewRowAnimation -> unit
override this.InsertSections : Foundation.NSIndexSet * UIKit.UITableViewRowAnimation -> unit

매개 변수

sections
NSIndexSet

삽입할 섹션 식별자 집합입니다. 지정된 인덱스에 섹션이 이미 있는 경우 하나의 인덱스 위치 아래로 이동됩니다.

withRowAnimation
UITableViewRowAnimation

행을 삽입할 때 사용할 애니메이션 유형(예: 왼쪽에서 페이드 인 또는 슬라이드)

특성

설명

UITableView 는 해당 메서드를 UITableViewSource 즉시 호출하여 셀 및 기타 콘텐츠를 가져와서 표시되는 행을 표시합니다.

EndUpdates()에서 정의 BeginUpdates() 한 애니메이션 블록 내에서 이 메서드를 호출하면 삭제가 처리될 때까지 행 또는 섹션의 삽입이 지연됩니다. 이는 애니메이션 블록 내에서 삽입 및 삭제 메서드 호출의 순서에 관계없이 발생합니다.

적용 대상