tableView(_:cellForRowAt:)

func tableView(_ inTableView: UITableView, cellForRowAt inIndexPath: IndexPath) -> UITableViewCell

This returns a view, with the data for the given row and section.

Parameters

inTableView

The table view that is asking for the cell.

cellForRowAt

The index path (section, row) for the cell.

  • This allows us to easily add a new subview to a view, and keep it tied to the one above.

    Declaration

    Swift

    func _addContainedSubView(_ inSubView: UIView, to inToView: UIView, under inUnderAnchor: NSLayoutYAxisAnchor) -> NSLayoutYAxisAnchor

    Parameters

    inSubView

    The view we are adding.

    to

    The view we are embedding it in.

    under

    The bottom constraint of the view just above this one.

    Return Value

    The bottom anchor of the embedded view (to be used as “under” in the next iteration).