Creates a new data source.
The data array to provide, in data[row][column] format
OptionaltitleRow: string[]An optional row of titles to provide to the table
The array storing the data for the table.
Returns the content view for a cell.
The table requesting data
The 0-based row of the cell to get
The 0-based column of the cell to get
The view to display in the table; its position will be modified
Returns the number of columns in the table at the specified row. The size of row 0 is used for header sizing.
The table requesting data
The 0-based row being queried
The number of columns in the row
Returns the number of rows in the table.
The table requesting data
The number of rows in the table
OptionaltitleReturns the title for the specified column. If unimplemented, the table will not have a header row.
The table requesting data
The 0-based column to query
The text showed in the header for the column
Updates all known table views with new data.
Returns the width of a column in a row, overriding the width of the view. If not implemented, the width is determined from the content. The size of row 0 is used for header sizing.
The table requesting data
The 0-based row to query
The 0-based column to query
The width of the column
This class defines a default instance of
CCTableViewDataSourcewhich reads data from a 2D array of strings or numbers.