iOS Developer Library — Pre-Release

Developer

UIKit Framework Reference UITextInputStringTokenizer Class Reference

Options
Deployment Target:

On This Page
Language:

UITextInputStringTokenizer

The UITextInputStringTokenizer class is a base implementation of the UITextInputTokenizer protocol provided by the UIKit framework. More...

Inheritance


Import Statement


Swift

import UIKit

Objective-C

@import UIKit;

Availability


Available in iOS 3.2 and later.
  • Returns an object initialized with the document object that directly communicates with the text input system.

    Declaration

    Swift

    init!(textInput textInput: UIResponder)

    Objective-C

    - (instancetype)initWithTextInput:(UIResponder<UITextInput> *)textInput

    Parameters

    textInput

    The document object in the application that adopts the UITextInput protocol for the purposes of communicating with the text input system.

    Return Value

    An instance of a subclass of UITextInputStringTokenizer, or nil if the object couldn’t be created.

    Discussion

    The subclass of UITextInputStringTokenizer should not retain textInput; the tokenizer should always have a lifetime bounded by that of the UITextInput-conforming object and a retaining reference would create a retain cycle.

    Import Statement

    Swift

    import UIKit

    Availability

    Available in iOS 3.2 and later.