Declared in TiToolbarButton.h

Overview

The protocol is used for any type of UI decoration which needs special handling when it is added to a toolbar element.

Tasks

  • – setToolbar:

    This method is called when the object is attached to a toolbar.

    required method
  • – toolbar

    Returns the toolbar the button is attached to.

    required method
  • – attachedToToolbar

    Whether or not the button it attached to a toolbar.

    required method

Instance Methods

attachedToToolbar

Whether or not the button it attached to a toolbar.

- (BOOL)attachedToToolbar

Return Value

YES if the button is attached to a toolbar, NO otherwise.

Declared In

TiToolbarButton.h

setToolbar:

This method is called when the object is attached to a toolbar.

- (void)setToolbar:(id<TiToolbar>)toolbar

Parameters

toolbar

The toolbar to attach to.

Declared In

TiToolbarButton.h

toolbar

Returns the toolbar the button is attached to.

- (id<TiToolbar>)toolbar

Return Value

The toolbar.

Declared In

TiToolbarButton.h