TKInputKey Class Reference
Inherits from | UIView |
Declared in | TKInputKey.h TKInputKey.m |
Tasks
Other Methods
-
+ keyWithFrame:symbol:normalType:selectedType:runner:
-
– initWithFrame:symbol:normalType:selectedType:runner:
Properties
-
normalType
property -
highlighedType
property -
runner
property -
label
property -
symbol
property -
– setHighlighted:
Properties
highlighedType
The display mode when the key is in a highlighted state.
@property (nonatomic, assign) TKInputKeyType highlighedType
Declared In
TKInputKey.h
label
The label that displays the text symbol.
@property (nonatomic, strong) UILabel *label
Declared In
TKInputKey.h
normalType
The display mode when the key is in a normal state.
@property (nonatomic, assign) TKInputKeyType normalType
Declared In
TKInputKey.h
Class Methods
keyWithFrame:symbol:normalType:selectedType:runner:
Initializes an input key.
+ (instancetype)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.
Declared In
TKInputKey.h
Instance Methods
initWithFrame:symbol:normalType:selectedType:runner:
Initializes an input key.
- (instancetype)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.
Declared In
TKInputKey.h