Szerkesztés

Megosztás a következőn keresztül:


UITableViewDataSource.SectionFor(UITableView, String, nint) Method

Definition

Returns the index of the section with the given tableView and atIndex.

[Foundation.Export("tableView:sectionForSectionIndexTitle:atIndex:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 10, 2, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual nint SectionFor (UIKit.UITableView tableView, string title, nint atIndex);
abstract member SectionFor : UIKit.UITableView * string * nint -> nint
override this.SectionFor : UIKit.UITableView * string * nint -> nint

Parameters

tableView
UITableView

Table view containing the section.

title
String

The title that's displayed in the table view's index.

atIndex
System.System.IntPtr System.nativeint

The index of the title in the array returned from the SectionIndexTitles(UITableView).

Returns

System.System.IntPtr System.nativeint

The index of the section in the table view.

Attributes

Remarks

This method is only required for table views that have an index: they must have the Plain style and implement the SectionIndexTitles(UITableView) property.

The index for a table view may contain fewer items than the number of actual sections in the table. This method is passed the text and index of an item in the index, and should return the position of the corresponding section.

Applies to