iOS Guides | Samples

MonoTouch.UIKit.IUITableViewDataSource

Interface representing the required methods (if any) of the protocol UITableViewDataSource.

See Also: IUITableViewDataSource

Syntax

[MonoTouch.Foundation.Protocol(Name="UITableViewDataSource", WrapperType=typeof(MonoTouch.UIKit.UITableViewDataSourceWrapper))]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="RowsInSection", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="tableView:numberOfRowsInSection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=true, IsStatic=false, Name="GetCell", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(MonoTouch.UIKit.UITableViewCell), Selector="tableView:cellForRowAtIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="NumberOfSections", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="numberOfSectionsInTableView:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="TitleForHeader", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.String), Selector="tableView:titleForHeaderInSection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="TitleForFooter", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.String), Selector="tableView:titleForFooterInSection:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CanEditRow", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.Boolean), Selector="tableView:canEditRowAtIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CanMoveRow", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.Boolean), Selector="tableView:canMoveRowAtIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SectionIndexTitles", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.String[]), Selector="sectionIndexTitlesForTableView:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="SectionFor", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], ReturnType=typeof(System.nint), Selector="tableView:sectionForSectionIndexTitle:atIndex:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="CommitEditingStyle", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="tableView:commitEditingStyle:forRowAtIndexPath:")]
[MonoTouch.Foundation.ProtocolMember(IsProperty=false, IsRequired=false, IsStatic=false, Name="MoveRow", ParameterByRef=Mono.Cecil.CustomAttributeArgument[], ParameterType=Mono.Cecil.CustomAttributeArgument[], Selector="tableView:moveRowAtIndexPath:toIndexPath:")]
public interface IUITableViewDataSource : INativeObject, IDisposable

Remarks

This interface contains the required methods (if any) from the protocol defined by UITableViewDataSource.

If developers create classes that implement this interface, the implementation methods will automatically be exported to Objective-C with the matching signature from the method defined in the UITableViewDataSource protocol.

Optional methods (if any) are provided by the UITableViewDataSource_Extensions class as extension methods to the interface, allowing developers to invoke any optional methods on the protocol.

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.IUITableViewDataSource are listed below.

Public Methods

GetCell(UITableView, NSIndexPath) : UITableViewCell
Returns a cell that can be inserted at indexPath.
RowsInSection(UITableView, Int32) : Int32
The number of rows in the specified section.