UITableViewSource.GetViewForHeader(UITableView, nint) メソッド

定義

指定したセクションの先頭に表示するビュー オブジェクトを返します。

[Foundation.Export("tableView:viewForHeaderInSection:")]
public virtual UIKit.UIView GetViewForHeader (UIKit.UITableView tableView, nint section);
abstract member GetViewForHeader : UIKit.UITableView * nint -> UIKit.UIView
override this.GetViewForHeader : UIKit.UITableView * nint -> UIKit.UIView

パラメーター

tableView
UITableView

セクションを含むテーブル ビュー。

section
System.System.IntPtr System.nativeint

ヘッダーが追加されるセクション インデックス。

戻り値

指定 sectionした の先頭に表示されるビュー。

属性

注釈

UILabelUIImageView、またはカスタム ビューを指定できます。 このメソッドも実装する必要 GetHeightForHeader(UITableView, nint) があります。

[UITableViewDelegate] で宣言されています

適用対象