mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
33 lines
557 B
Markdown
33 lines
557 B
Markdown
---
|
|
title: TextField.setKeymanDelegate()
|
|
---
|
|
|
|
## Summary
|
|
|
|
The **`setKeymanDelegate()`** method sets the delegate.
|
|
|
|
## Syntax
|
|
|
|
```swift
|
|
TextField.setKeymanDelegate(keymanDelegate: TextFieldDelegate)
|
|
```
|
|
|
|
### Parameter
|
|
|
|
`keymanDelegate`
|
|
: Keyman Delegate.
|
|
|
|
## Description
|
|
|
|
Use this TextFieldDelegate instead of the normal UITextFieldDelegate.
|
|
|
|
## Example
|
|
|
|
### Using `setKeymanDelegate()`
|
|
The following script illustrates the use of `setKeymanDelegate()`:
|
|
|
|
```swift
|
|
textField1 = TextField()
|
|
setTextFieldStyle(textField1)
|
|
textField1.setKeymanDelegate(self)
|
|
```
|