Contents

addButton(descriptor:)

Creates a new button control with the provided descriptor, and adds it to the touch controller.

Declaration

func addButton(descriptor: TCButtonDescriptor) -> TCButton

Parameters

  • descriptor:

    The TCButtonDescriptor containing the configuration for the button.

Return Value

A new TCButton instance.

See Also

Adding a button control