SFormInputElementResponder Protocol Reference

Conforms to NSObject
Declared in SFormInputElementResponder.h
Availability
Related samples

Overview

This protocol defines the interface for any object wishing to respond to input element events.

The responder methods on this protocol are typically added as target selectors to a field’s input element. The responder is resposible for setting these target selectors up via the addResponderMethodsToInputElement: method.

Tasks

Responding to Input Element Events

Setup and Teardown of Responder Methods

Instance Methods

addResponderMethodsToInputElement:

Adds the appropriate responder methods as target selectors to inputElement.

- (void)addResponderMethodsToInputElement:(UIView *)inputElement

Parameters

inputElement

The input element to add the responder methods to.

Discussion

A typical implementation of this might add didBeginEditingInputElement:, didChangeValueForInputElement: and didEndEditingInputElement: as target selectors to inputElement for UIControlEvents appropriate to the inputElement type.

Declared In

SFormInputElementResponder.h

didBeginEditingInputElement:

Notifies the responder that an input element has begun editing.

- (void)didBeginEditingInputElement:(id)inputElement

Parameters

inputElement

The input element that did begin editing.

Declared In

SFormInputElementResponder.h

didChangeValueForInputElement:

Notifies the responder that an input element’s value changed.

- (void)didChangeValueForInputElement:(id)inputElement

Parameters

inputElement

The input element that has has its value changed.

Declared In

SFormInputElementResponder.h

didEndEditingInputElement:

Notifies the responder that an input element has finished editing.

- (void)didEndEditingInputElement:(id)inputElement

Parameters

inputElement

The input element that has finished editing.

Declared In

SFormInputElementResponder.h

removeResponderMethodsFromInputElement:

Removes the appropriate target selectors from inputElement.

- (void)removeResponderMethodsFromInputElement:(UIView *)inputElement

Parameters

inputElement

The input element to remove the responder methods from.

Discussion

A typical implementation of this would remove any target selectors added by the addResponderMethodsToInputElement: counterpart.

Declared In

SFormInputElementResponder.h