Inherits from UIView
Declared in TKInputKey.h

Overview

TKInputKey is an input key to be used by a TKInputView.

Tasks

Other Methods

Properties

Properties

highlighedType

The display mode when the key is in a highlighted state.

@property (nonatomic, assign) TKInputKeyType highlighedType

Discussion

The display mode when the key is in a highlighted state.

Declared In

TKInputKey.h

label

The label that displays the text symbol.

@property (nonatomic, strong) UILabel *label

Discussion

The label that displays the text symbol.

Declared In

TKInputKey.h

normalType

The display mode when the key is in a normal state.

@property (nonatomic, assign) TKInputKeyType normalType

Discussion

The display mode when the key is in a normal state.

Declared In

TKInputKey.h

runner

If yes, the key can be highlighted and selected even if it isn’t the initial key touched at the beginning.

@property (nonatomic, assign) BOOL runner

Discussion

If yes, the key can be highlighted and selected even if it isn’t the initial key touched at the beginning.

Declared In

TKInputKey.h

symbol

The symbol image view.

@property (nonatomic, strong) UIImageView *symbol

Discussion

The symbol image view.

Declared In

TKInputKey.h

Class Methods

keyWithFrame:symbol:normalType:selectedType:runner:

Initializes an input key.

+ (id)keyWithFrame:(CGRect)frame symbol:(id)symbol normalType:(TKInputKeyType)normal selectedType:(TKInputKeyType)highlighted runner:(BOOL)runner

Parameters

frame

The frame of the UIView.

symbol

A image or string for the key.

normal

A image or string for the key.

highlighted

A image or string for the key.

runner

If yes, the key can be highlighted and selected even if it isn’t the initial key touched at the beginning.

Return Value

An initialized TKInputKey object or nil if the object couldn’t be created.

Discussion

Initializes an input key.

Declared In

TKInputKey.h

Instance Methods

initWithFrame:symbol:normalType:selectedType:runner:

Initializes an input key.

- (id)initWithFrame:(CGRect)frame symbol:(id)symbol normalType:(TKInputKeyType)normal selectedType:(TKInputKeyType)highlighted runner:(BOOL)runner

Parameters

frame

The frame of the UIView.

symbol

A image or string for the key.

normal

A image or string for the key.

highlighted

A image or string for the key.

runner

If yes, the key can be highlighted and selected even if it isn’t the initial key touched at the beginning.

Return Value

An initialized TKInputKey object or nil if the object couldn’t be created.

Discussion

Initializes an input key.

Declared In

TKInputKey.h

setHighlighted:

The backspace key.

- (void)setHighlighted:(BOOL)highlighted

Parameters

highlighted

A flag to set the key to highlighted.

Discussion

The backspace key.

Declared In

TKInputKey.h