TablesDelegate
public protocol TablesDelegate
A protocol that helps you communicate and interact with user input in Tables
-
Updates the code of the cell at a specific address
Declaration
Swift
func updateCellCode(code: String, x: Int, y: Int)Parameters
codeThe content of the updated cell.
xThe x coordinate of the cell. For example, when we want to update
B4, it will call this function withx = 1asBis the second letter in the alphabet and we start from 0yThe x coordinate of the cell. For example, when we want to update
B4, it will call this function withy = 3as we start from 0. -
Get the code of a cell at a specific address
Declaration
Swift
func codeOfCell(x: Int, y: Int) -> StringParameters
xThe x coordinate of the cell. For example, when the parser sees
B4, it will call this function withx = 1asBis the second letter in the alphabet and we start from 0yThe x coordinate of the cell. For example, when the parser sees
B4, it will call this function withy = 3as we start from 0.
View on GitHub
TablesDelegate Protocol Reference